summaryrefslogtreecommitdiff
path: root/test/ThinLTO/X86/newpm-basic.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ThinLTO/X86/newpm-basic.ll')
-rw-r--r--test/ThinLTO/X86/newpm-basic.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ThinLTO/X86/newpm-basic.ll b/test/ThinLTO/X86/newpm-basic.ll
new file mode 100644
index 0000000000000..d357cbc85d005
--- /dev/null
+++ b/test/ThinLTO/X86/newpm-basic.ll
@@ -0,0 +1,11 @@
+; RUN: opt -module-summary %s -o %t1.bc
+; RUN: llvm-lto2 run %t1.bc -o %t.o \
+; RUN: -r=%t1.bc,_tinkywinky,pxl \
+; RUN: -lto-use-new-pm
+
+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
+}