diff options
Diffstat (limited to 'test/Sema/array-constraint.c')
-rw-r--r-- | test/Sema/array-constraint.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c new file mode 100644 index 0000000000..4b70bb9bb3 --- /dev/null +++ b/test/Sema/array-constraint.c @@ -0,0 +1,11 @@ +// RUN: clang -parse-ast-check %s + +struct s; +struct s* t (struct s z[]) { // expected-error {{array has incomplete element type}} + return z; +} + +void *k (void l[2]) { // expected-error {{array has incomplete element type}} + return l; +} + |