PR tree-optimization/81627
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dom-thread-9.c
blob2d9028d3ea9798f57572704d22d15aec385dbed9
1 /* PR 65048 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -std=gnu89" } */
5 int a, b, c, d;
6 void fn (void);
8 int
9 foo (x)
10 int x;
12 switch (x)
14 case 'A':
15 return 'T';
16 case 'U':
17 return 'A';
21 void
22 bar (int x, int y)
24 switch (c)
26 case 'U':
27 switch (x)
29 default:
30 fn ();
31 case 'G':
32 switch (y)
34 case 'A':
35 d = 7;
41 void
42 baz (void)
44 while (1)
46 a = foo ();
47 b = foo ();
48 bar (a, b);