From: Davide Italiano Date: Tue, 24 Jan 2017 00:59:00 +0000 (+0000) Subject: [LTO] Add test to show up we don't support ThinLTO yet. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71d2fd7c901e648a953bc0049110c44ac6f430bc;p=llvm [LTO] Add test to show up we don't support ThinLTO yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292865 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/ThinLTO/X86/error-newpm.ll b/test/ThinLTO/X86/error-newpm.ll new file mode 100644 index 00000000000..9b013227602 --- /dev/null +++ b/test/ThinLTO/X86/error-newpm.ll @@ -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 +}