[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr37106-1.c
blobff73b0b8dfee2711844eea85e58d7aa5359d4899
1 /* PR c/37106 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1" } */
4 /* { dg-options "-O1 -fpic" { target fpic } } */
6 #define SIZE 256
7 float a[SIZE], b[SIZE], c[SIZE];
9 void opt3 (void) __attribute__((__optimize__(3)));
11 void
12 opt3 (void)
14 int i;
16 for (i = 0; i < SIZE; i++)
17 a[i] = b[i] + c[i];
20 void
21 not_opt3 (void)
23 int i;
25 for (i = 0; i < SIZE; i++)
26 a[i] = b[i] - c[i];