aboutsummaryrefslogtreecommitdiff
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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/address_spaces.c b/test/Sema/address_spaces.c
index a53bb4da0003..24799daa9e50 100644
--- a/test/Sema/address_spaces.c
+++ b/test/Sema/address_spaces.c
@@ -44,3 +44,7 @@ void test3(void) {
extern void test3_helper(char *p); // expected-note {{passing argument to parameter 'p' here}}
test3_helper(test3_array); // expected-error {{changes address space of pointer}}
}
+
+typedef void ft(void);
+_AS1 ft qf; // expected-error {{function type may not be qualified with an address space}}
+typedef _AS1 ft qft; // expected-error {{function type may not be qualified with an address space}}