]> git.ipfire.org Git - thirdparty/gcc.git/blame - 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
CommitLineData
1c53fa8c
RB
1/* { dg-do compile } */
2/* { dg-options "-O2 -fgimple -fdump-tree-ch2-details" } */
3
4int __GIMPLE (startwith("ch"))
5test2 (int n)
6{
7bb_3:
8 if (n_1(D) > 0)
9 goto bb_3;
10 else
11 goto bb_4;
12
13bb_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" } } */