1 /* { dg-do compile } */
2 /* { dg-options "-Wc++-compat" } */
20 e1
= D
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
21 e1
= 0; /* { dg-warning "invalid in C\[+\]\[+\]" } */
23 e1
= (enum E2
) 0; /* { dg-warning "invalid in C\[+\]\[+\]" } */
24 e1
= e2
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
26 e1
= g2
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
27 e2
= A
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
31 struct s
{ enum E1 e1
: 3; };
37 sv
.e1
= D
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
39 g2
= sv
.e1
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
46 pv
->e1
= D
; /* { dg-warning "invalid in C\[+\]\[+\]" } */
48 g2
= pv
->e1
; /* { dg-warning "invalid in C\[+\]\[+\]" } */