libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / sso-13.c
blobddfde00b758c4fd4f721e3d98136b2c28735fe4f
1 /* Test support of scalar_storage_order attribute */
3 /* { dg-do compile } */
5 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
6 #define REV_ENDIANNESS __attribute__((scalar_storage_order("big-endian")))
7 #else
8 #define REV_ENDIANNESS __attribute__((scalar_storage_order("little-endian")))
9 #endif
11 typedef struct tIp6Addr
13 unsigned int s6_addr32[4];
14 } tIp6Addr;
16 struct _tBeTimNetAddr
18 unsigned char isIPv4;
19 union
21 unsigned int addr;
22 tIp6Addr addr6; /* { dg-warning "type punning toggles" } */
23 } REV_ENDIANNESS u;
24 } REV_ENDIANNESS;