* c-c++-common/ubsan/float-cast-overflow-6.c: Add i?86-*-* target.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20141029-1.c
blobb25af576967e004e7b711b78f7b06517e04152f7
1 /* { dg-do compile } */
2 /* { dg-options "-fstrict-volatile-bitfields -fdump-rtl-final" } */
4 #define PERIPH (*(volatile struct system_periph *)0x81234)
6 struct system_periph {
7 union {
8 unsigned short WORD;
9 struct {
10 unsigned short a:1;
11 unsigned short b:1;
12 unsigned short :5;
13 unsigned short c:1;
14 unsigned short :8;
15 } BIT;
16 } ALL;
19 void
20 foo()
22 while (1)
24 PERIPH.ALL.BIT.a = 1;
27 /* { dg-final { scan-rtl-dump-times "mem/v(/.)*:HI" 4 "final" } } */
28 /* { dg-final { cleanup-rtl-dump "final" } } */