aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/types.c')
-rw-r--r--test/Sema/types.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Sema/types.c b/test/Sema/types.c
new file mode 100644
index 0000000000..208abce3d9
--- /dev/null
+++ b/test/Sema/types.c
@@ -0,0 +1,10 @@
+// RUN: clang %s -pedantic -verify
+
+// rdar://6097662
+typedef int (*T)[2];
+restrict T x;
+
+typedef int *S[2];
+restrict S y; // expected-error {{restrict requires a pointer or reference ('S' is invalid)}}
+
+