summaryrefslogtreecommitdiff
path: root/test/ELF/lto/thinlto.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/lto/thinlto.ll')
-rw-r--r--test/ELF/lto/thinlto.ll13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/ELF/lto/thinlto.ll b/test/ELF/lto/thinlto.ll
index 160c83a18abf..2036c554a76d 100644
--- a/test/ELF/lto/thinlto.ll
+++ b/test/ELF/lto/thinlto.ll
@@ -3,19 +3,20 @@
; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o
; First force single-threaded mode
+; RUN: rm -f %t.lto.o %t1.lto.o
; RUN: ld.lld -save-temps --thinlto-jobs=1 -shared %t.o %t2.o -o %t
-; RUN: llvm-nm %t0.lto.o | FileCheck %s --check-prefix=NM1-SINGLE
-; RUN: llvm-nm %t1.lto.o | FileCheck %s --check-prefix=NM2-SINGLE
-
-; NM1-SINGLE: T f
-; NM2-SINGLE: T g
+; RUN: llvm-nm %t.lto.o | FileCheck %s --check-prefix=NM1
+; RUN: llvm-nm %t1.lto.o | FileCheck %s --check-prefix=NM2
; Next force multi-threaded mode
+; RUN: rm -f %t2.lto.o %t21.lto.o
; RUN: ld.lld -save-temps --thinlto-jobs=2 -shared %t.o %t2.o -o %t2
-; RUN: llvm-nm %t20.lto.o | FileCheck %s --check-prefix=NM1
+; RUN: llvm-nm %t2.lto.o | FileCheck %s --check-prefix=NM1
; RUN: llvm-nm %t21.lto.o | FileCheck %s --check-prefix=NM2
; NM1: T f
+; NM1-NOT: U g
+
; NM2: T g
; Then check without --thinlto-jobs (which currently default to hardware_concurrency)