2018-06-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr67784-3.c
blob45e3c44b26625c45a4b585682c2ebbc008c22547
1 /* PR c/67784 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 typedef int T;
7 void
8 fn1 (void)
10 if (sizeof (enum { T }) == 0)
12 T x;
15 void
16 fn2 (void)
18 int i = 0;
19 if (sizeof (enum { T }) == 0)
20 i++;
21 T x;
24 void
25 fn3 (void)
27 if (sizeof (enum { T }) == 0)
30 T x;
33 void
34 fn4 (void)
36 if (sizeof (enum { T }) == 0)
39 T x;
42 void
43 fn5 (void)
45 if (sizeof (enum { T }) == 0)
47 else
49 T x;