PR tree-optimization/93683 - ICE on calloc with unused return value in ao_ref_init_fr...
[gcc.git] / gcc / testsuite / gcc.dg / sso-1.c
1 /* Test support of scalar_storage_order attribute */
2
3 /* { dg-do compile } */
4
5 int i;
6
7 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
8 struct __attribute__((scalar_storage_order("big-endian"))) Rec
9 {
10 int *p;
11 };
12 #else
13 struct __attribute__((scalar_storage_order("little-endian"))) Rec
14 {
15 int *p;
16 };
17 #endif
18
19 struct Rec r = { &i }; /* { dg-error "element is not constant" } */