gcc/testsuite/gcc.c-torture/execute/pr118915.c
raw| 1 | /* PR tree-optimization/118915 */ |
| 2 | |
| 3 | int a; |
| 4 | |
| 5 | int |
| 6 | foo (int c, int d, int e, int f) |
| 7 | { |
| 8 | if (!d || !e) |
| 9 | return -22; |
| 10 | if (c > 16) |
| 11 | return -22; |
| 12 | if (!f) |
| 13 | return -22; |
| 14 | return 2; |
| 15 | } |
| 16 | |
| 17 | int |
| 18 | main () |
| 19 | { |
| 20 | if (foo (a + 21, a + 6, a + 34, a + 26) != -22) |
| 21 | __builtin_abort (); |
| 22 | } |