RTEMS: Add Cortex-M33 multilib
[gcc.git] / gcc / testsuite / g++.dg / pr71694.C
blob60f246ff83ee89d00e015d20e4b651b935fca113
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-store-merging" } */
3 /* { dg-additional-options "-fno-PIE" { target ia32 } } */
4 /* { dg-additional-options "-fno-common -mdynamic-no-pic" { target { ia32 && { x86_64-*-darwin* i?86-*-darwin* } } } } */
6 struct B {
7     B() {}
8     int x;
9     int a : 6;
10     int b : 6;
11     int c : 6;
14 struct C : B {
15     char d;
18 C c;
20 int main()
22   /* We have to make sure to not cause a store data race between
23      c.c and c.d residing in the tail padding of B.  */
24   c.c = 1;
25   c.d = 2;
28 /* In particular on x86 c.d should not be loaded/stored via movl.  */
29 /* { dg-final { scan-assembler-not "movl" { target { x86_64-*-* i?86-*-* } } } } */