gcc/testsuite/gcc.dg/tree-ssa/isolate-6.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-isolate-paths" } */ |
| 3 | |
| 4 | int x, y; |
| 5 | |
| 6 | static inline int |
| 7 | z () |
| 8 | { |
| 9 | return x ? y : 0; |
| 10 | } |
| 11 | |
| 12 | int |
| 13 | lower_for (int j) |
| 14 | { |
| 15 | return j % z (); |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-tree-dump-times "__builtin_trap" 1 "isolate-paths"} } */ |
| 19 |