OSDN Git Service

a2d55f4a8c4fbb688d9e58d24833a6d650ad732d
[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-not "movl" } } */