gcc/testsuite/gcc.dg/pr103270.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ |
| 3 | |
| 4 | void test(int a, int* i) |
| 5 | { |
| 6 | for (; a < 5; ++a) |
| 7 | { |
| 8 | int b = 0; |
| 9 | int c = 0; |
| 10 | for (; b != -11; b--) |
| 11 | for (int d = 0; d ==0; d++) |
| 12 | { |
| 13 | *i += c & a; |
| 14 | c = b; |
| 15 | } |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | /* { dg-final { scan-tree-dump-not "extra loop exit heuristics of edge\[^:\]*:" "profile_estimate"} } */ |