Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr65146.c

raw
1 /* PR target/65146 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wno-psabi" } */
4
5 struct A { char a; _Atomic long long b; };
6 struct B { char a; _Atomic double b; };
7 struct C { char a; _Atomic long long b[2]; };
8 struct D { char a; _Atomic double b[2]; };
9 extern int a[__builtin_offsetof (struct A, b) == 8 ? 1 : -1];
10 extern int b[__builtin_offsetof (struct B, b) == 8 ? 1 : -1];
11 extern int c[__builtin_offsetof (struct C, b) == 8 ? 1 : -1];
12 extern int d[__builtin_offsetof (struct D, b) == 8 ? 1 : -1];