summaryrefslogtreecommitdiffstats
path: root/llvm/test/LTO/Resolution/X86/multi-thinlto.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/LTO/Resolution/X86/multi-thinlto.ll')
-rw-r--r--llvm/test/LTO/Resolution/X86/multi-thinlto.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/LTO/Resolution/X86/multi-thinlto.ll b/llvm/test/LTO/Resolution/X86/multi-thinlto.ll
new file mode 100644
index 00000000000..605c9694ced
--- /dev/null
+++ b/llvm/test/LTO/Resolution/X86/multi-thinlto.ll
@@ -0,0 +1,6 @@
+; RUN: opt -module-summary %s -o %t.o
+; RUN: llvm-cat -b -o %t2.o %t.o %t.o
+; RUN: not llvm-lto2 -o %t3.o %t2.o 2>&1 | FileCheck %s
+; CHECK: Expected at most one ThinLTO module per bitcode file
+
+target triple = "x86_64-unknown-linux-gnu"
OpenPOWER on IntegriCloud