summaryrefslogtreecommitdiffstats
path: root/test/Sema/address_spaces.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/address_spaces.c')
-rw-r--r--test/Sema/address_spaces.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/address_spaces.c b/test/Sema/address_spaces.c
index 0ae3230..4756af9 100644
--- a/test/Sema/address_spaces.c
+++ b/test/Sema/address_spaces.c
@@ -65,3 +65,5 @@ void access_as_field()
(void) bar.as_field;
}
+typedef int PR4997 __attribute__((address_space(Foobar))); // expected-error {{use of undeclared identifier 'Foobar'}}
+__attribute__((address_space("12"))) int *i; // expected-error {{'address_space' attribute requires an integer constant}}
OpenPOWER on IntegriCloud