summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/gold/X86/Inputs/thinlto_weak_library2.ll
blob: 684549aa320ee57f6109c2c91d894800b5848df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; ModuleID = 'thinlto_weak_library2.c'
source_filename = "thinlto_weak_library2.c"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define weak i32 @f() local_unnamed_addr {
entry:
  ret i32 2
}

; Function Attrs: nounwind uwtable
define void @test2() local_unnamed_addr {
entry:
  tail call i32 (...) @test1()
  tail call i32 @f()
  ret void
}

declare i32 @test1(...) local_unnamed_addr
OpenPOWER on IntegriCloud