1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* { dg-do compile } */ /* { dg-options "-O1 -ftree-loop-vectorize -fno-tree-dce -fno-tree-scev-cprop" } */ int m; __attribute__ ((noinline, returns_twice)) void empty (void) { } void foo (void) { while (m < 1) { empty (); ++m; } }