Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/torture/pr81249.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +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; } }