1 /* { dg-do run } */ 2 3 struct S 4 { 5 __INT32_TYPE__ a : 24; 6 __INT32_TYPE__ b : 8; 7 } s; 8 9 int main()10main() 11 { 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; 28 } 29