summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-07-04 04:10:46 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-07-04 04:10:46 +0000
commit6d6676b9d1e37dba5439f42f5e282f4fca58f30a (patch)
tree8a82696660d3bb63ec23f87d3dbd2831c8463942
parente65319009c87132088f8b6cbd1dde5a87d9237dc (diff)
downloadbcm5719-llvm-6d6676b9d1e37dba5439f42f5e282f4fca58f30a.tar.gz
bcm5719-llvm-6d6676b9d1e37dba5439f42f5e282f4fca58f30a.zip
Add test for PR4997. This has been fixed for a while.
llvm-svn: 185614
-rw-r--r--clang/test/Sema/address_spaces.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/address_spaces.c b/clang/test/Sema/address_spaces.c
index 0ae3230a618..ebc510134b3 100644
--- a/clang/test/Sema/address_spaces.c
+++ b/clang/test/Sema/address_spaces.c
@@ -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'}}
OpenPOWER on IntegriCloud