Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / incomplete-call.c
blobb095f7136787c1913ee6610c9934d4807098c97d
1 // RUN: %clang_cc1 -fsyntax-only -Wno-strict-prototypes -verify %s
3 struct foo; // expected-note 3 {{forward declaration of 'struct foo'}}
5 struct foo a(void); // expected-note {{'a' declared here}}
6 void b(struct foo);
7 void c();
9 void func(void *p) {
10 a(); // expected-error{{calling 'a' with incomplete return type 'struct foo'}}
11 b(*(struct foo*)p); // expected-error{{argument type 'struct foo' is incomplete}}
12 c(*(struct foo*)p); // expected-error{{argument type 'struct foo' is incomplete}}