1 /* PR c/4475, PR c++/3780 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wswitch" } */
8 foo (int i
, int j
, enum e ei
, enum e ej
, enum e ek
, enum e el
,
9 enum e em
, enum e en
, enum e eo
, enum e ep
)
22 switch (ei
) /* { dg-warning "enumeration value 'e1' not handled in switch" "enum e1" } */
23 { /*{ dg-warning "enumeration value 'e2' not handled in switch" "enum e2" { target *-*-* } 22 } */
29 switch (ek
) /* { dg-warning "enumeration value 'e2' not handled in switch" "enum e2" } */
53 case 3: return 3; /* { dg-warning "case value '3' not in enumerated type 'enum e'" "excess 3" } */
59 case 3: return 3; /* { dg-warning "case value '3' not in enumerated type 'enum e'" "excess 3" } */