OSDN Git Service

* gcc.dg/vect/vect-105.c: Prevent compiler from hoisting abort
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr35729.c
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fdump-rtl-loop2_invariant" } */
3
4 const volatile int g_361 = 3L;
5 volatile int g_2 = 0L;
6 void func_1 (void)
7 {
8   for (g_2 = 0; g_2 > 10; g_2++)
9     {
10       int l_357 = g_361;
11     }
12 }
13
14 /* { dg-final { scan-rtl-dump-times "Decided to move invariant" 0 "loop2_invariant" } } */
15 /* { dg-final { cleanup-rtl-dump "loop2_invariant" } } */