view gcc/testsuite/gcc.dg/pr46440.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

/* PR rtl-optimization/46440 */
/* { dg-do compile } */
/* { dg-options "-O -fstack-protector -fno-tree-dominator-opts -fno-tree-fre" } */
/* { dg-require-effective-target fstack_protector } */

int i;

void bar (char *);

void
foo (void)
{
  void *l;
  char c[64];
  bar (c);
  i = 1;
  if (i)
    l = &&l1;
  else
    l = &&l2;
  goto *l;
l2:
  __builtin_abort ();
l1:;
}