gcc/testsuite/g++.dg/torture/pr103361.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-floop-unroll-and-jam" } */ |
| 3 | |
| 4 | char a, b; |
| 5 | extern unsigned short c[]; |
| 6 | extern bool d[]; |
| 7 | const unsigned short &e(const unsigned short &f, const unsigned short &g) { |
| 8 | if (g < f) |
| 9 | return g; |
| 10 | return f; |
| 11 | } |
| 12 | void k() { |
| 13 | for (int h = 0; b; h += 3) |
| 14 | for (unsigned long i = 0; i < 11104842004558084287ULL; |
| 15 | i += -11104842004558084300ULL) |
| 16 | for (bool j(e(6, e(6, c[h + i]))); j < (bool)a; j = 7) |
| 17 | d[7] = 0; |
| 18 | } |