blob: c8b104a47d88e163c01669785569fa879902107b [file] [log] [blame]
Eli Friedman21bab842009-03-22 22:03:03 +00001// RUN: clang -fsyntax-only -verify %s
2
3struct foo; // expected-note 3 {{forward declaration of 'struct foo'}}
4
5struct foo a();
6void b(struct foo);
7void c();
8
9void func() {
10 a(); // expected-error{{return type of called function ('struct foo') is incomplete}}
11 b(*(struct foo*)0); // expected-error{{argument type 'struct foo' is incomplete}}
12 c(*(struct foo*)0); // expected-error{{argument type 'struct foo' is incomplete}}
13}