2015-08-29 06:16:09 +08:00
|
|
|
; RUN: llvm-as -o %t.obj %s
|
2017-02-03 07:58:14 +08:00
|
|
|
; RUN: lld-link /out:%t.exe /entry:foo /include:bar /opt:lldltopartitions=2 /subsystem:console /lldmap:%t.map %t.obj
|
2015-08-29 06:16:09 +08:00
|
|
|
; RUN: FileCheck %s < %t.map
|
|
|
|
|
|
|
|
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-pc-windows-msvc"
|
|
|
|
|
2017-02-03 07:58:14 +08:00
|
|
|
; CHECK: lto.tmp
|
2017-01-14 11:14:46 +08:00
|
|
|
; CHECK-NEXT: foo
|
2015-08-29 06:16:09 +08:00
|
|
|
define void @foo() {
|
|
|
|
call void @bar()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2017-02-03 07:58:14 +08:00
|
|
|
; CHECK: lto.tmp
|
|
|
|
; CHECK: bar
|
2015-08-29 06:16:09 +08:00
|
|
|
define void @bar() {
|
|
|
|
call void @foo()
|
|
|
|
ret void
|
|
|
|
}
|