1 ; RUN: opt -S -mergefunc < %s | FileCheck %s
3 ; After the merge of test5 and test6, we can merge test3 and test4,
4 ; then test1 and test2.
6 ; CHECK: define void @test6() unnamed_addr
7 ; CHECK-NEXT: tail call void @test5()
8 ; CHECK: define void @test4() unnamed_addr
9 ; CHECK-NEXT: tail call void @test3()
10 ; CHECK: define void @test2() unnamed_addr
11 ; CHECK-NEXT: tail call void @test1()
15 define void @test1() unnamed_addr {
21 define void @test2() unnamed_addr {
27 define void @test3() unnamed_addr {
33 define void @test4() unnamed_addr {
39 define void @test5() unnamed_addr {
45 define void @test6() unnamed_addr {