c++: ICE with NSDMIs and fn arguments [PR116015]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr65241.c
blob75e11a26dcc612e8658e8f051a29e7f3922171ed
1 /* { dg-additional-options "-fpermissive" } */
3 enum E { A, B, C, D };
4 void fn4 (void);
6 int
7 fn1 (enum E p1)
9 static int w[D];
10 if (w[p1])
11 switch (p1)
12 case C:
13 w[p1] = 0;
16 void
17 fn2 (p1)
19 fn1 (p1);
22 void
23 fn3 (enum E p1)
25 fn2 (p1);
26 fn4 ();
27 fn2 (p1);