llvm-project/clang/test/Sema/array-constraint.c
Chris Lattner 7aa350019a update test
llvm-svn: 40765
2007-08-02 22:36:03 +00:00

12 lines
328 B
C

// RUN: clang -parse-ast-check %s
struct s;
struct s* t (struct s z[]) { // expected-error {{array has incomplete element type}}
return z; // expected-error {{incompatible pointer type returning}}
}
void *k (void l[2]) { // expected-error {{array has incomplete element type}}
return l;
}