forked from OSchip/llvm-project
[Clang] Fix signed-unsigned comparison warning that breaks the ppc64 build.
This commit is contained in:
parent
8f9d73fbd6
commit
1784fe7be7
|
@ -102,13 +102,13 @@ TEST(Attr, AnnotateType) {
|
||||||
AssertAnnotatedAs(PointerTL.getPointeeLoc(), "foo", PointerPointerTL,
|
AssertAnnotatedAs(PointerTL.getPointeeLoc(), "foo", PointerPointerTL,
|
||||||
&Annotate);
|
&Annotate);
|
||||||
|
|
||||||
EXPECT_EQ(Annotate->args_size(), 2);
|
EXPECT_EQ(Annotate->args_size(), 2u);
|
||||||
const auto *StringLit = selectFirst<StringLiteral>(
|
const auto *StringLit = selectFirst<StringLiteral>(
|
||||||
"str", match(constantExpr(hasDescendant(stringLiteral().bind("str"))),
|
"str", match(constantExpr(hasDescendant(stringLiteral().bind("str"))),
|
||||||
*Annotate->args_begin()[0], AST->getASTContext()));
|
*Annotate->args_begin()[0], AST->getASTContext()));
|
||||||
ASSERT_NE(StringLit, nullptr);
|
ASSERT_NE(StringLit, nullptr);
|
||||||
EXPECT_EQ(StringLit->getString(), "arg1");
|
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())
|
*Annotate->args_begin()[1], AST->getASTContext())
|
||||||
.size(),
|
.size(),
|
||||||
1);
|
1);
|
||||||
|
|
Loading…
Reference in New Issue