blob: a614e6c2812ec11b700924d930ab4db2ceb5088a [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregor402abb52009-05-28 23:31:59 +00002
3struct S0;
4struct S1;
5struct S2;
6struct S3;
7struct S4;
8struct S5;
9struct S6;
10
11struct S0 { int x; };
12
13void f0() {
14 typedef struct S1 { int x; } S1_typedef;
15
16 (void)((struct S2 { int x; }*)0); // expected-error{{can not be defined}}
17
18 struct S3 { int x; } s3;
19
20 (void)static_cast<struct S4 { int x; } *>(0); // expected-error{{can not be defined}}
21}
22
23struct S5 { int x; } f1() { return S5(); } // expected-error{{result type}}
24
25void f2(struct S6 { int x; } p); // expected-error{{parameter type}}