Unsigned constants for ISO_FORTRAN_ENV and ISO_C_BINDING.
[official-gcc.git] / gcc / testsuite / c-c++-common / cxxbitfields-3.c
blob706bf8659ea96449badc61cd674eabd1e2a1a5b2
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -fno-allow-store-data-races" } */
4 /* Make sure we don't narrow down to a QI or HI to store into VAR.J,
5 but instead use an SI. */
7 struct S
8 {
9 volatile int i: 4;
10 volatile int j: 4;
11 volatile int k: 8;
12 volatile int l: 8;
13 volatile int m: 8;
14 } var;
16 void setit()
18 var.j = 5;
21 /* { dg-final { scan-assembler "movl.*, _?var" { target nonpic } } } */
22 /* { dg-final { scan-assembler "movl.*, (_?var|\\(%)" { target { ! nonpic } } } } */