1 /* Test volatile access to unaligned field. */
3 /* { dg-require-effective-target size32plus } */
4 /* { dg-options "-fstrict-volatile-bitfields" } */
6 extern void abort (void);
8 #define test_type unsigned int
9 #define MAGIC 0x1020304u
14 }__attribute((__packed__
)) ss
;
19 void __attribute__((noinline
))
25 test_type
__attribute__((noinline
))
35 __builtin_memcpy(&g
, (void *)&v
, sizeof(g
));
40 __builtin_memcpy((void *)&v
, &g
, sizeof(v
));