tree-optimization/111233 - loop splitting miscompile
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr91126.c
blob8e34815b9a78709d385b108d04e22ea125d51432
1 /* { dg-do run } */
3 struct S
5 __INT32_TYPE__ a : 24;
6 __INT32_TYPE__ b : 8;
7 } s;
9 int
10 main()
12 s.a = 0xfefefe;
13 s.b = 0xfe;
14 unsigned char c;
15 c = ((unsigned char *)&s)[0];
16 if (c != 0xfe)
17 __builtin_abort ();
18 c = ((unsigned char *)&s)[1];
19 if (c != 0xfe)
20 __builtin_abort ();
21 c = ((unsigned char *)&s)[2];
22 if (c != 0xfe)
23 __builtin_abort ();
24 c = ((unsigned char *)&s)[3];
25 if (c != 0xfe)
26 __builtin_abort ();
27 return 0;