diff options
Diffstat (limited to 'llvm/unittests/IR/PassBuilderCallbacksTest.cpp')
| -rw-r--r-- | llvm/unittests/IR/PassBuilderCallbacksTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/unittests/IR/PassBuilderCallbacksTest.cpp b/llvm/unittests/IR/PassBuilderCallbacksTest.cpp index bb7e227075e..7306257851a 100644 --- a/llvm/unittests/IR/PassBuilderCallbacksTest.cpp +++ b/llvm/unittests/IR/PassBuilderCallbacksTest.cpp @@ -776,6 +776,7 @@ TEST_F(CGSCCCallbacksTest, InstrumentedPasses) { CallbacksHandle.registerPassInstrumentation(); // Non-mock instrumentation not specifically mentioned below can be ignored. CallbacksHandle.ignoreNonMockPassInstrumentation("<string>"); + CallbacksHandle.ignoreNonMockPassInstrumentation("foo"); CallbacksHandle.ignoreNonMockPassInstrumentation("(foo)"); EXPECT_CALL(AnalysisHandle, run(HasName("(foo)"), _, _)); @@ -815,6 +816,7 @@ TEST_F(CGSCCCallbacksTest, InstrumentedInvalidatingPasses) { CallbacksHandle.registerPassInstrumentation(); // Non-mock instrumentation not specifically mentioned below can be ignored. CallbacksHandle.ignoreNonMockPassInstrumentation("<string>"); + CallbacksHandle.ignoreNonMockPassInstrumentation("foo"); CallbacksHandle.ignoreNonMockPassInstrumentation("(foo)"); EXPECT_CALL(AnalysisHandle, run(HasName("(foo)"), _, _)); @@ -858,6 +860,7 @@ TEST_F(CGSCCCallbacksTest, InstrumentedSkippedPasses) { CallbacksHandle.registerPassInstrumentation(); // Non-mock instrumentation run here can safely be ignored. CallbacksHandle.ignoreNonMockPassInstrumentation("<string>"); + CallbacksHandle.ignoreNonMockPassInstrumentation("foo"); CallbacksHandle.ignoreNonMockPassInstrumentation("(foo)"); // Skip the pass by returning false. |

