Skip to content

Commit a07aac0

Browse files
committed
Does this fix the unit tests?
1 parent d90661a commit a07aac0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

clang/unittests/AST/ASTImporterTest.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,13 @@ TEST_P(ImportExpr, ImportShuffleVectorExpr) {
305305
return __builtin_shufflevector(a, b, 0, 1, 2, 3);
306306
}
307307
)code";
308-
const auto Pattern = functionDecl(hasDescendant(shuffleVectorExpr(
309-
allOf(has(declRefExpr(to(parmVarDecl(hasName("a"))))),
310-
has(declRefExpr(to(parmVarDecl(hasName("b"))))),
311-
has(integerLiteral(equals(0))), has(integerLiteral(equals(1))),
312-
has(integerLiteral(equals(2))), has(integerLiteral(equals(3)))))));
308+
const auto Pattern = functionDecl(hasDescendant(
309+
shuffleVectorExpr(allOf(has(declRefExpr(to(parmVarDecl(hasName("a"))))),
310+
has(declRefExpr(to(parmVarDecl(hasName("b"))))),
311+
has(constantExpr(hasSubExpr(integerLiteral(equals(0))))),
312+
has(constantExpr(hasSubExpr(integerLiteral(equals(1))))),
313+
has(constantExpr(hasSubExpr(integerLiteral(equals(2))))),
314+
has(constantExpr(hasSubExpr(integerLiteral(equals(3)))))))));
313315
testImport(Code, Lang_C99, "", Lang_C99, Verifier, Pattern);
314316
}
315317

0 commit comments

Comments
 (0)