OSDN Git Service

* gcc.gd/struct/wo_prof_global_var.c: Use uninitialized integer
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr37106-2.c
1 /* PR c/37106 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
4 /* { dg-options "-O3 -fpic" { target fpic } } */
5
6 #define SIZE 256
7 float a[SIZE], b[SIZE], c[SIZE];
8
9 void non_opt3 (void) __attribute__((__optimize__(1)));
10
11 void
12 not_opt3 (void)
13 {
14   int i;
15
16   for (i = 0; i < SIZE; i++)
17     a[i] = b[i] - c[i];
18 }
19
20 void
21 opt3 (void)
22 {
23   int i;
24
25   for (i = 0; i < SIZE; i++)
26     a[i] = b[i] + c[i];
27 }