r369686 - Fix the nullPointerConstant() test to get bots back to green.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 22 11:56:18 PDT 2019
Author: aaronballman
Date: Thu Aug 22 11:56:18 2019
New Revision: 369686
URL: http://llvm.org/viewvc/llvm-project?rev=369686&view=rev
Log:
Fix the nullPointerConstant() test to get bots back to green.
Modified:
cfe/trunk/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
Modified: cfe/trunk/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp?rev=369686&r1=369685&r2=369686&view=diff
==============================================================================
--- cfe/trunk/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp (original)
+++ cfe/trunk/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp Thu Aug 22 11:56:18 2019
@@ -2392,7 +2392,7 @@ TEST(NullPointerConstants, Basic) {
EXPECT_TRUE(matches("void *v3 = __null;", expr(nullPointerConstant())));
EXPECT_TRUE(matches("char *cp = (char *)0;", expr(nullPointerConstant())));
EXPECT_TRUE(matches("int *ip = 0;", expr(nullPointerConstant())));
- EXPECT_TRUE(notMatches("int i = 0;", expr(nullPointerConstant())));
+ EXPECT_TRUE(matches("int i = 0;", expr(nullPointerConstant())));
}
TEST(HasExternalFormalLinkage, Basic) {
More information about the cfe-commits
mailing list