gcc/testsuite/gcc.dg/ipa/pr119530.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O3 -fno-tree-vrp -fno-inline" } */ |
| 3 | |
| 4 | struct a { |
| 5 | int b; |
| 6 | }; |
| 7 | int c; |
| 8 | signed char d; |
| 9 | static int e(long long f) { return f < 0; } |
| 10 | static void g(unsigned f) { c = e(~f); } |
| 11 | int main() { |
| 12 | int h; |
| 13 | struct a i = {128}; |
| 14 | h = d > i.b; |
| 15 | g(h); |
| 16 | if (h) |
| 17 | __builtin_abort(); |
| 18 | if (c) |
| 19 | __builtin_abort(); |
| 20 | return 0; |
| 21 | } |