blob: 2accde1f36257267d41a05485f23d2a910e37084 [file] [log] [blame]
Teresa Johnson4cd016ab2017-11-13 15:38:33 +00001// Test to ensure -fdebug-pass-manager works when invoking the
2// ThinLTO backend path with the new PM.
3// REQUIRES: x86-registered-target
4// RUN: %clang_cc1 -o %t.o -flto=thin -fexperimental-new-pass-manager -triple x86_64-unknown-linux-gnu -emit-llvm-bc %s
5// RUN: llvm-lto -thinlto -o %t %t.o
6// 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
7// CHECK: Running pass:
8
9void foo() {
10}