1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
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}}
26