view gcc/testsuite/g++.dg/torture/pr69053.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 compile }
// { dg-additional-options "-march=core-avx2" { target x86_64-*-* i?86-*-* } }
struct A {
    int *elem[1];
};
int a, d, e;
A *b;
int *c;
int main()
{
  int *f = 0;
  for (; e; e++)
    if (b->elem[e])
      f = c;
  if (f)
    a = d;
}