Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / sso-1.c
blobb2e11bd00d31c0e04c594632221748fddf073657
1 /* Test support of scalar_storage_order attribute */
3 /* { dg-do compile } */
5 int i;
7 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
8 struct __attribute__((scalar_storage_order("big-endian"))) Rec
10 int *p;
12 #else
13 struct __attribute__((scalar_storage_order("little-endian"))) Rec
15 int *p;
17 #endif
19 struct Rec r = { &i }; /* { dg-error "element is not constant" } */