libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr81815.c
blob79f345a641a18d257843a20410793f421187bc15
1 int __attribute__ ((noinline, noclone))
2 f (int *x, int n)
4 int b = 13;
5 for (int i = 0; i < n; ++i)
7 int next = x[i];
8 b = b < 100 ? next : 200;
10 return b;
13 static int res[32];
15 int
16 main (void)
18 for (int i = 0; i < 32; ++i)
19 res[i] = i;
20 res[15] = 100;
21 if (f (res, 32) != 200)
22 __builtin_abort ();
23 return 0;