gcc/testsuite/gcc.dg/pr77407.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -fstrict-overflow -fdump-tree-gimple" } */ |
| 3 | |
| 4 | int foo (int c) |
| 5 | { |
| 6 | if (c != 0) |
| 7 | c /= __builtin_abs (c); |
| 8 | return c; |
| 9 | } |
| 10 | |
| 11 | int bar (int c) |
| 12 | { |
| 13 | if (c != 0) |
| 14 | c /= -c; |
| 15 | return c; |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-tree-dump-times "/" 0 "gimple" } } */ |