OSDN Git Service

7023b31654a73ed6a1af795116028282ecf5d186
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / c-c++-common / cxxbitfields-4.c
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 --param allow-store-data-races=0" } */
3
4 struct bits
5 {
6   char a;
7   int b:7;
8   int c:9;
9   unsigned char d;
10 } x;
11
12 /* Store into <c> should not clobber <d>.  */
13 void update_c(struct bits *p, int val) 
14 {
15     p -> c = val;
16 }
17
18 /* { dg-final { scan-assembler "mov\[bw\]" } } */