diff options
Diffstat (limited to 'test/COFF/msvclto.ll')
-rw-r--r-- | test/COFF/msvclto.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/COFF/msvclto.ll b/test/COFF/msvclto.ll new file mode 100644 index 000000000000..e8a6b5c49ce9 --- /dev/null +++ b/test/COFF/msvclto.ll @@ -0,0 +1,18 @@ +; 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 \ +; RUN: /entry:main /verbose > %t.log || true +; RUN: FileCheck %s < %t.log + +; CHECK: /opt:icf /entry:main /verbose + +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 +} |