]> granicus.if.org Git - llvm/commitdiff
[LTO] Add test to show up we don't support ThinLTO yet.
authorDavide Italiano <davide@freebsd.org>
Tue, 24 Jan 2017 00:59:00 +0000 (00:59 +0000)
committerDavide Italiano <davide@freebsd.org>
Tue, 24 Jan 2017 00:59:00 +0000 (00:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292865 91177308-0d34-0410-b5e6-96231b3b80d8

test/ThinLTO/X86/error-newpm.ll [new file with mode: 0644]

diff --git a/test/ThinLTO/X86/error-newpm.ll b/test/ThinLTO/X86/error-newpm.ll
new file mode 100644 (file)
index 0000000..9b01322
--- /dev/null
@@ -0,0 +1,13 @@
+; RUN: opt -module-summary %s -o %t1.bc
+; RUN: not llvm-lto2 %t1.bc -o %t.o \
+; RUN:     -r=%t1.bc,_tinkywinky,pxl \
+; RUN:     -lto-use-new-pm 2>&1 | FileCheck %s
+
+; CHECK: ThinLTO not supported with the new PM yet!
+
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-apple-macosx10.11.0"
+
+define void @tinkywinky() {
+    ret void
+}