]> granicus.if.org Git - clang/blobdiff - unittests/ASTMatchers/ASTMatchersNodeTest.cpp
Revert "[Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr."
[clang] / unittests / ASTMatchers / ASTMatchersNodeTest.cpp
index c659c6a002667882dd50092ed4319752255ea219..4bbc0a48019e77a7615dd3155a469b30f51c685d 100644 (file)
@@ -999,8 +999,8 @@ TEST(ExprWithCleanups, MatchesExprWithCleanups) {
   EXPECT_TRUE(matches("struct Foo { ~Foo(); };"
                         "const Foo f = Foo();",
                       varDecl(hasInitializer(exprWithCleanups()))));
-  EXPECT_FALSE(matches("struct Foo { }; Foo a;"
-                       "const Foo f = a;",
+  EXPECT_FALSE(matches("struct Foo { };"
+                         "const Foo f = Foo();",
                        varDecl(hasInitializer(exprWithCleanups()))));
 }