2017-07-19 02:40:50 +08:00
|
|
|
; REQUIRES: x86
|
2017-02-23 08:26:42 +08:00
|
|
|
; RUN: llvm-as -o %t.obj %s
|
|
|
|
; RUN: mkdir -p %t.dir
|
|
|
|
; RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t.dir/bitcode.obj %p/Inputs/msvclto.s
|
|
|
|
; RUN: lld-link %t.obj %t.dir/bitcode.obj /msvclto /out:%t.exe /opt:lldlto=1 /opt:icf \
|
2017-12-12 05:57:31 +08:00
|
|
|
; RUN: /entry:main /verbose 2> %t.log || true
|
2017-02-07 04:47:55 +08:00
|
|
|
; RUN: FileCheck %s < %t.log
|
|
|
|
|
2017-04-19 06:29:36 +08:00
|
|
|
; CHECK: /opt:icf /entry:main
|
|
|
|
; CHECK: /verbose
|
2017-02-07 04:47:55 +08:00
|
|
|
|
|
|
|
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-pc-windows-msvc"
|
|
|
|
|
|
|
|
declare void @foo()
|
|
|
|
|
|
|
|
define i32 @main() {
|
|
|
|
call void @foo()
|
|
|
|
ret i32 0
|
|
|
|
}
|