diff options
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp')
| -rw-r--r-- | clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp index 076d21a1f5e..e37bcbeec1f 100644 --- a/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp +++ b/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp @@ -2259,21 +2259,5 @@ TEST(Matcher, isMain) { notMatches("int main2() {}", functionDecl(isMain()))); } -TEST(Matcher, hasSideEffects) { - EXPECT_TRUE(matches("void call();" - "void f() { call(); }", - expr(hasSideEffects()))); - EXPECT_TRUE(matches("void f(int& a) { a = 0; }", expr(hasSideEffects()))); - EXPECT_TRUE( - matches("void f(volatile int a) { (void)a; }", expr(hasSideEffects()))); - - EXPECT_TRUE(notMatches("void call();" - "void f() { }", - expr(hasSideEffects()))); - EXPECT_TRUE( - notMatches("void f(int& a) { (void)a; }", expr(hasSideEffects()))); - EXPECT_TRUE(notMatches("void f(int a) { (void)a; }", expr(hasSideEffects()))); -} - } // namespace ast_matchers } // namespace clang |

