PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / loop-9.c
blob12f790a45ba4bc6ab5e7e60a22133177be1e3cf9
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-rtl-loop2_invariant" } */
4 void
5 f (double *a)
7 int i;
8 for (i = 0; i < 100; i++)
9 a[i] = 18.4242;
12 /* Load of x is moved out of the loop. */
13 /* { dg-final { scan-rtl-dump "Decided" "loop2_invariant" } } */
14 /* { dg-final { scan-rtl-dump "without introducing a new temporary register" "loop2_invariant" } } */