libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / sms-compare-debug-2.c
blobdca7b65c08e4fc36aa0cc3b2b140e5c343511219
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fcompare-debug -fmodulo-sched" } */
4 struct S { int f; signed int g : 2; } a[1], c = {5, 1}, d;
5 short b;
7 __attribute__((noinline, noclone)) void
8 foo (int x)
10 if (x != 1)
11 __builtin_abort ();
14 int
15 main ()
17 while (b++ <= 0)
19 struct S e = {1, 1};
20 d = e = a[0] = c;
22 foo (a[0].g);
23 return 0;