Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr59304.c
blobf56ebc374bd8776ce0d4e6e06759dd30dd442ad7
1 /* { dg-do compile } */
2 enum EE
4 ONE, TWO, THREE
5 };
7 int f (enum EE e)
9 int r = 0;
11 #pragma GCC diagnostic push
12 #pragma GCC diagnostic error "-Wswitch-enum"
14 switch (e)
16 case ONE:
17 r = 1;
18 break;
19 case TWO:
20 r = 2;
21 break;
22 case THREE:
23 r = 3;
24 break;
27 #pragma GCC diagnostic pop
29 switch (e)
31 case ONE:
32 r = 1;
33 break;
34 case TWO:
35 r = 2;
36 break;
39 return r;