[Clang] Fix signed-unsigned comparison warning that breaks the ppc64 build.

This commit is contained in:
Martin Boehme 2022-06-15 10:38:10 +02:00
parent 8f9d73fbd6
commit 1784fe7be7
1 changed files with 2 additions and 2 deletions

View File

@ -102,13 +102,13 @@ TEST(Attr, AnnotateType) {
AssertAnnotatedAs(PointerTL.getPointeeLoc(), "foo", PointerPointerTL,
&Annotate);
EXPECT_EQ(Annotate->args_size(), 2);
EXPECT_EQ(Annotate->args_size(), 2u);
const auto *StringLit = selectFirst<StringLiteral>(
"str", match(constantExpr(hasDescendant(stringLiteral().bind("str"))),
*Annotate->args_begin()[0], AST->getASTContext()));
ASSERT_NE(StringLit, nullptr);
EXPECT_EQ(StringLit->getString(), "arg1");
EXPECT_EQ(match(constantExpr(has(integerLiteral(equals(2)).bind("int"))),
EXPECT_EQ(match(constantExpr(has(integerLiteral(equals(2u)).bind("int"))),
*Annotate->args_begin()[1], AST->getASTContext())
.size(),
1);