* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr65163.c
blob3a6b2880e31a713ec7762aefc6504bb1cf36e4ed
1 /* PR target/65163 */
3 typedef unsigned int uint32_t;
4 typedef unsigned short uint16_t;
5 union unaligned_32 { uint32_t l; } __attribute__((packed));
6 union unaligned_16 { uint16_t l; } __attribute__((packed));
8 int
9 test_00 (unsigned char* buf, int bits_per_component)
11 (((union unaligned_32*)(buf))->l) =
12 __builtin_bswap32 (bits_per_component == 10 ? 1 : 0);
13 return 0;
16 int
17 test_01 (unsigned char* buf, int bits_per_component)
19 (((union unaligned_16*)(buf))->l) =
20 __builtin_bswap16 (bits_per_component == 10 ? 1 : 0);
21 return 0;