summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/array-constraint.c
blob: ed498419068fa6cf42ab097fabf537ac9952632e (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: clang -parse-ast-check %s

struct s; 
struct s* t (struct s z[]) {   // expected-error {{array has incomplete element type}}
  return z;                    // expected-warning {{incompatible pointer type returning}}
}

void *k (void l[2]) {          // expected-error {{array has incomplete element type}}
  return l; 
}

OpenPOWER on IntegriCloud