summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/thinlto-debug-pm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/thinlto-debug-pm.c')
-rw-r--r--test/CodeGen/thinlto-debug-pm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/thinlto-debug-pm.c b/test/CodeGen/thinlto-debug-pm.c
new file mode 100644
index 0000000000..9d9ab5e39d
--- /dev/null
+++ b/test/CodeGen/thinlto-debug-pm.c
@@ -0,0 +1,9 @@
+// Test to ensure -fdebug-pass-manager works when invoking the
+// ThinLTO backend path with the new PM.
+// RUN: %clang -O2 %s -flto=thin -c -o %t.o
+// RUN: llvm-lto -thinlto -o %t %t.o
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-obj -O2 -o %t2.o -x ir %t.o -fthinlto-index=%t.thinlto.bc -fdebug-pass-manager -fexperimental-new-pass-manager 2>&1 | FileCheck %s
+// CHECK: Running pass:
+
+void foo() {
+}