1 ; RUN: opt -S -mergefunc < %s | FileCheck %s
3 @llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (i32 (i32)* @a to i8*)], 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 i8*] [i8* bitcast (i32 (i32)* @a to i8*)], 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)