gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-16.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-threadfull1-details" } */ |
| 3 | |
| 4 | int res; |
| 5 | void foo (int a, int b, int c, int d, int e) |
| 6 | { |
| 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; |
| 22 | } |
| 23 | |
| 24 | /* { dg-final { scan-tree-dump "SUCCESS" "threadfull1" } } */ |