Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr69990.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do run } */ /* { dg-require-effective-target section_anchors } */ /* { dg-options "-O2 -fsection-anchors -ftree-loop-vectorize" } */ #pragma pack(1) struct S0 { volatile int f0:12; } static a[] = {{15}}, c[] = {{15}}; struct S0 b[] = {{7}}; int __attribute__ ((noinline, noclone)) ok (int a, int b, int c) { return a == 15 && b == 7 && c == 15 ? 0 : 1; } int main (void) { struct S0 *f[] = { c, b }; return ok (a[0].f0, b[0].f0, f[0]->f0); }