1 /* { dg-do compile } */
2 /* { dg-options "-Wc++-compat" } */
8 struct s
{ enum E1 e1
: 3; enum E2 e2
: 4; };
11 f2 (int i
, struct s sv
, struct s
*pv
)
21 return D
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
23 return 0; /* { dg-warning "invalid in C\[+\]\[+\]" } */
27 return (enum E2
) 2; /* { dg-warning "invalid in C\[+\]\[+\]" } */
31 return e2
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
37 return pv
->e2
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
39 return sv
.e2
; /* { dg-warning "invalid in C\[+\]\[+\]" } */