libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / nested-func-11.c
blob01096b4147f6a8e082d5520be8649aaaf561beb2
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fno-omit-frame-pointer" } */
4 int __attribute__((noipa)) foo (int i)
6 int a;
8 void __attribute__((noipa)) nested2 (int i)
10 a = i;
13 void __attribute__((noipa)) nested1 (int i)
15 int b[32];
17 for (int j = 0; j < 32; j++)
18 b[j] = i + j;
20 nested2 (b[i]);
23 nested1 (i);
25 return a;
28 int main (void)
30 if (foo (4) != 8)
31 __builtin_abort ();
33 return 0;