aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr51879-7.c
blob: 6c1d3209c929a719acc14a3b89e98128f427dbab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre" } */

int bar (int);

int z;

void
foo (int y)
{
  if (y == 6)
    z = 5;
  else
    z = 5;
}

/* { dg-final { scan-tree-dump-times "z = 5" 1 "pre"} } */
/* { dg-final { cleanup-tree-dump "pre" } } */