Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/torture/pr81249.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-additional-options "-mavx2 -mprefer-avx128" { target x86_64-*-* i?86-*-* } } */ typedef struct rtx_def *rtx; union rtunion { rtx rt_rtx; }; struct rtx_def { struct { rtunion fld[0]; } u; rtx elem[]; } a; int b, c, d; rtx e; int main() { for (;;) { d = 0; for (; d < b; d++) if (a.elem[d]) e = a.elem[d]->u.fld[1].rt_rtx; if (e) c = 0; } }