view gcc/testsuite/gcc.dg/torture/ssa-fre-3.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
/* { dg-additional-options "-fdump-tree-fre1" } */

int x;
int main()
{
  x = 0;
  int z = x;
  int w = 1;
  for (int i = 0; i < 32; ++i)
    {
      if (z)
	w = 2;
      else
	w = 1;
      if (w == 2)
	__builtin_abort ();
    }
  return w;
}

/* { dg-final { scan-tree-dump-not "abort" "fre1" } } */