summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr66726-2.c
blob: ab43d4835d2c78d05f3f9910a1ae04ef00d17dc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-phiopt1-details" } */

extern void bar (char, char);
int
foo (char b)
{
  char a;
  a = b;
  b = 'b';
  bar (a, b);
  b = a;
  if (b == 0)
    a++;
  return a + b;
}

/* { dg-final { scan-tree-dump-times "factor conversion out" 0 "phiopt1" } } */