* fi.po: Update.
[official-gcc.git] / gcc / testsuite / c-c++-common / pr61405.c
blob9c05a84764a6ef70a91da69a53621b6de527c5d6
1 /* PR c/61405 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wswitch" } */
5 enum E { A, B, C };
6 struct S { enum E e:2; };
7 typedef struct S TS;
9 int
10 fn0 (struct S *s)
12 switch (s->e) /* { dg-warning "enumeration value .C. not handled in switch" } */
14 case A:
15 return 1;
16 case B:
17 return 2;
21 int
22 fn1 (TS *s)
24 switch (s->e) /* { dg-warning "enumeration value .C. not handled in switch" } */
26 case A:
27 return 1;
28 case B:
29 return 2;