libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr106070.c
blobf031516cf0c1febd874f2dc053440fc5635e928b
1 /* { dg-do run } */
3 unsigned int a = 1;
4 int b = -1;
5 int c = 4;
6 unsigned long long d;
8 void __attribute__((noipa))
9 test (void)
11 for (int i = 0; i < c; i += 2)
12 d = a != (int) b ? (unsigned long long) b : (unsigned long long) a;
15 int
16 main ()
18 test ();
19 if (d != -1ULL)
20 __builtin_abort ();
21 return 0;