mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 07:26:07 +00:00
12 lines
328 B
C
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;
|
|
}
|
|
|