* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr69990.c
blobefb835ec1f8332b91e9f404d83fb23e6a710de43
1 /* { dg-do run } */
2 /* { dg-require-effective-target section_anchors } */
3 /* { dg-options "-O2 -fsection-anchors -ftree-loop-vectorize" } */
5 #pragma pack(1)
6 struct S0 {
7 volatile int f0:12;
8 } static a[] = {{15}}, c[] = {{15}};
10 struct S0 b[] = {{7}};
12 int __attribute__ ((noinline, noclone))
13 ok (int a, int b, int c)
15 return a == 15 && b == 7 && c == 15 ? 0 : 1;
18 int
19 main (void)
21 struct S0 *f[] = { c, b };
23 return ok (a[0].f0, b[0].f0, f[0]->f0);