]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/copy-headers-3.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / copy-headers-3.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fgimple -fdump-tree-ch2-details" } */
3
4 int __GIMPLE (startwith("ch"))
5 test2 (int n)
6 {
7 bb_3:
8 if (n_1(D) > 0)
9 goto bb_3;
10 else
11 goto bb_4;
12
13 bb_4:
14 return;
15
16 }
17
18 /* { dg-final { scan-tree-dump "is do-while loop" "ch2" } } */
19 /* { dg-final { scan-tree-dump-not "is not do-while loop" "ch2" } } */