diff options
Diffstat (limited to 'lld/test/COFF/msvclto-archive.ll')
-rw-r--r-- | lld/test/COFF/msvclto-archive.ll | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lld/test/COFF/msvclto-archive.ll b/lld/test/COFF/msvclto-archive.ll index b525fad3709..937ef5325bf 100644 --- a/lld/test/COFF/msvclto-archive.ll +++ b/lld/test/COFF/msvclto-archive.ll @@ -1,14 +1,19 @@ -;; Make sure we do not pass archive files containing bitcode files. +;; Make sure we do not pass archive files containing only bitcode files. ; RUN: llvm-as -o %t.obj %s -; RUN: llvm-ar cru %t-main.a %t.obj +; RUN: llvm-ar cru %t-main1.a %t.obj ; 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-main.a %t.dir/bitcode.obj /msvclto /out:%t.exe /opt:lldlto=1 /opt:icf \ +; RUN: lld-link %t-main1.a %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 +; RUN: FileCheck -check-prefix=BC %s < %t.log +; BC-NOT: link.exe {{.*}}-main1.a -; CHECK-NOT: link.exe {{.*}}t-main.a +; RUN: llvm-ar cru %t-main2.a %t.obj %t.dir/bitcode.obj +; RUN: lld-link %t.dir/bitcode.obj %t-main2.a /msvclto /out:%t.exe /opt:lldlto=1 /opt:icf \ +; RUN: /entry:main /verbose > %t.log || true +; RUN: FileCheck -check-prefix=OBJ %s < %t.log +; OBJ: link.exe {{.*}}-main2.a target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-windows-msvc" |