brintos

brintos / llvm-project-archived public Read only

0
0
Text · 506 B · 92eadd7 Raw
15 lines · c
1// RUN: %clang_cc1 -fsyntax-only %s -verify2// PR56923 4enum x;            // expected-note   {{forward declaration}}5extern struct y a; // expected-note   {{forward declaration}}6extern union z b;  // expected-note 2 {{forward declaration}}7 8void foo(void) {9  (enum x)1;   // expected-error {{cast to incomplete type}}10  (struct y)a; // expected-error {{cast to incomplete type}}11  (union z)b;  // expected-error {{cast to incomplete type}}12  (union z)1;  // expected-error {{cast to incomplete type}}13}14 15