1 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
2 ; RUN: grep "callq g@PLT" %t1
3
4 @g = weak alias i32 (), i32 ()* @f
5
6 define void @h() {
7 entry:
8 %tmp31 = call i32 @g()
9 ret void
10 }
11
12 define weak i32 @f() {
13 ret i32 42
14 }
15