]> granicus.if.org Git - clang/commitdiff
Add test for PR4997. This has been fixed for a while.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 4 Jul 2013 04:10:46 +0000 (04:10 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 4 Jul 2013 04:10:46 +0000 (04:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185614 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/address_spaces.c

index 0ae3230a61898702eb4a20dba4b7a5474cef2d3e..ebc510134b3129c6d32277f2a7f066b61d0dc4ff 100644 (file)
@@ -65,3 +65,4 @@ void access_as_field()
     (void) bar.as_field;
 }
 
+typedef int PR4997 __attribute__((address_space(Foobar))); // expected-error {{use of undeclared identifier 'Foobar'}}