1 /* Test volatile access to unaligned field. */
3 /* { dg-options "-fstrict-volatile-bitfields" } */
5 extern void abort (void);
7 #define test_type unsigned long long
8 #define MAGIC 0x102030405060708ull
13 }__attribute((__packed__
)) ss
;
18 void __attribute__((noinline
))
24 test_type
__attribute__((noinline
))
34 __builtin_memcpy(&g
, (void *)&v
, sizeof(g
));
39 __builtin_memcpy((void *)&v
, &g
, sizeof(v
));