libstdc++: Remove std::__is_pointer and std::__is_scalar [PR115497]
[official-gcc.git] / gcc / testsuite / gcc.dg / pr53037-3.c
blobc9b0efd187420638ca4c1f087ae83e02aa474470
1 /* PR c/53037. */
2 /* { dg-do compile } */
3 /* { dg-options "-O0 -Wall" } */
4 /* { dg-require-effective-target int32 } */
6 struct __attribute__ ((aligned (8))) S8 { char a[8]; };
7 struct __attribute__ ((packed)) S1 {
8 struct S8 s8;
9 }; /* { dg-warning "alignment 1 of 'struct S1' is less than 8" } */
11 struct __attribute__ ((packed, aligned (8))) S2 {
12 struct S8 s8;
15 struct __attribute__ ((packed, aligned (8))) S3 {
16 int i1;
17 struct S8 s8; /* { dg-warning "'s8' offset 4 in 'struct S3' isn't aligned to 8" } */
20 struct __attribute__ ((packed, aligned (8))) S4 {
21 int i1;
22 int i2;
23 struct S8 s8;
26 struct __attribute__ ((packed)) S5 {
27 long long ll;
30 union __attribute__ ((packed)) U1 {
31 int i1;
32 struct S8 s8;
33 }; /* { dg-warning "alignment 1 of 'union U1' is less than 8" } */
35 union __attribute__ ((packed, aligned (8))) U2 {
36 int i1;
37 struct S8 s8;