summaryrefslogtreecommitdiffstats
path: root/test/Sema/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r--test/Sema/function.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c
index b51c137..1b0dc2a 100644
--- a/test/Sema/function.c
+++ b/test/Sema/function.c
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic
-// PR1892
-void f(double a[restrict][5]); // should promote to restrict ptr.
-void f(double (* restrict a)[5]);
+
+// PR1892, PR11354
+void f(double a[restrict][5]) { __typeof(a) x = 10; } // expected-warning {{(aka 'double (*restrict)[5]')}}
int foo (__const char *__path);
int foo(__const char *__restrict __file);
@@ -89,3 +89,6 @@ unknown_type t19(int* P) { // expected-error {{unknown type name 'unknown_type
// missing ',' before '...'
void t20(int i...) { } // expected-error {{requires a comma}}
+
+int n;
+void t21(int n, int (*array)[n]);
OpenPOWER on IntegriCloud