Fix the nullPointerConstant() test to get bots back to green.

llvm-svn: 369686
This commit is contained in:
Aaron Ballman 2019-08-22 18:56:18 +00:00
parent e5d6f07e9d
commit 518b2266f5

View File

@ -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) {