aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/static-array.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/static-array.c')
-rw-r--r--test/Sema/static-array.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/static-array.c b/test/Sema/static-array.c
index be8957c254..5ca693b2bf 100644
--- a/test/Sema/static-array.c
+++ b/test/Sema/static-array.c
@@ -51,3 +51,7 @@ void n(int *(x)[static 10]); // no-warning
void o(int (x[static 10])(void)); // expected-error{{'x' declared as array of functions of type 'int (void)'}}
void p(int (^x)[static 10]); // expected-error{{block pointer to non-function type is invalid}}
void q(int (^x[static 10])()); // no-warning
+
+void r(x)
+ int x[restrict]; // no-warning
+{}