1 ; RUN: opt -S -passes=mergefunc < %s | FileCheck %s
3 @llvm.compiler.used = appending global [1 x ptr] [ptr @a], section "llvm.metadata"
5 define internal i32 @a(i32 %a) unnamed_addr {
11 define i32 @b(i32 %a) unnamed_addr {
17 define i32 @c(i32 %a) unnamed_addr {
18 %b = tail call i32 @a(i32 %a)
22 ; CHECK-LABEL: @llvm.compiler.used = appending global [1 x ptr] [ptr @a], section "llvm.metadata"
24 ; CHECK-LABEL: define i32 @b(i32 %a) unnamed_addr
29 ; CHECK-LABEL: define i32 @c(i32 %a) unnamed_addr
30 ; CHECK-NEXT: tail call i32 @b(i32 %a)
33 ; CHECK-LABEL: define internal i32 @a(i32 %0) unnamed_addr
34 ; CHECK-NEXT: tail call i32 @b(i32 %0)