1 /* { dg-do compile } */
2 /* { dg-options "-Wc++-compat" } */
6 enum e1
/* { dg-message "note: enum type defined here" } */
8 A
, /* { dg-message "note: enum constant defined here" } */
11 struct s2
/* { dg-message "note: struct defined here" } */
13 struct s3
/* { dg-message "note: struct defined here" } */
20 union u1
/* { dg-message "note: union defined here" } */
31 enum e1 v2
; /* { dg-warning "not visible in C\[+\]\[+\]" } */
32 struct s2 v3
; /* { dg-warning "not visible in C\[+\]\[+\]" } */
33 struct s3 v4
; /* { dg-warning "not visible in C\[+\]\[+\]" } */
34 union u1 v5
; /* { dg-warning "not visible in C\[+\]\[+\]" } */
35 int i
= A
; /* { dg-warning "not visible in C\[+\]\[+\]" } */