libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-thread-16.c
blobf96170b073dfa0869ad8396c6678849264d79c0a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-threadfull1-details" } */
4 int res;
5 void foo (int a, int b, int c, int d, int e)
7 if (a > 100)
8 res = 3;
9 if (b != 5)
10 res = 5;
11 if (c == 29)
12 res = 7;
13 if (d < 2)
14 res = 9;
15 /* Accounting whoes makes this not catched. */
16 #if 0
17 if (e != 37)
18 res = 11;
19 #endif
20 if (a < 10)
21 res = 13;
24 /* { dg-final { scan-tree-dump "SUCCESS" "threadfull1" } } */