From: Aaron Ballman Date: Thu, 22 Aug 2019 18:56:18 +0000 (+0000) Subject: Fix the nullPointerConstant() test to get bots back to green. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51d6184d80dc7ea18f1487db00019ae5f406f479;p=clang Fix the nullPointerConstant() test to get bots back to green. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369686 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp b/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp index ea2d952537..342897fd56 100644 --- a/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp +++ b/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp @@ -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) {