]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/pr66726-2.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr66726-2.c
1
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-phiopt1-details" } */
4
5 extern void bar (char, char);
6 int
7 foo (char b)
8 {
9 char a;
10 a = b;
11 b = 'b';
12 bar (a, b);
13 b = a;
14 if (b == 0)
15 a++;
16 return a + b;
17 }
18
19 /* { dg-final { scan-tree-dump-times "factor conversion out" 0 "phiopt1" } } */