2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr67784-4.c
blob54620802a90303184f023dc59d1663b9e7e0afa4
1 /* PR c/67784 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wno-switch-unreachable" } */
5 typedef int T;
7 void
8 fn1 (void)
10 switch (sizeof (enum { T }))
11 if (1)
13 T x;
16 void
17 fn2 (void)
19 int i = 0;
20 switch (sizeof (enum { T }))
21 if (1)
22 i++;
23 T x;
26 void
27 fn3 (void)
29 switch (sizeof (enum { T }))
30 if (1)
33 T x;
36 void
37 fn4 (void)
39 switch (sizeof (enum { T }))
40 if (1)
43 T x;
46 void
47 fn5 (void)
49 switch (sizeof (enum { T }))
50 if (1)
52 else
54 T x;