view gcc/testsuite/gcc.dg/torture/pr67133.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 "-fisolate-erroneous-paths-attribute" } */

int printf (const char *, ...);
int foo (int);

int a, *b, c;

static int
fn1 ()
{ 
  if (a)
    return (a = 0);
  for (; a; )
    a = 0;
  return 0;
}

static int
fn2 (int p)
{ 
  fn1 ();
  c = 0;
  if (p)
    printf ("%d", 0);
  foo (b != &p);
  return 0;
}

void
fn3 ()
{ 
  fn2 (0);
}