summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Ridge <zeratul976@hotmail.com>2022-09-05 03:48:17 -0400
committerTobias Hieta <tobias@hieta.se>2022-09-28 08:16:42 +0200
commit10a54971b0d34f3b68b3213bcf82079dc2d00ae9 (patch)
tree988f462692de7538289227891455a39bcb67b68e
parente08c165dd67a60635cc131ad7a73dcdb368d5e06 (diff)
downloadllvm-10a54971b0d34f3b68b3213bcf82079dc2d00ae9.tar.gz
Fix build error in StmtPrinterTest.cpp
(cherry picked from commit c933453858307d060a1b79e257feb99c9ac828d7)
-rw-r--r--clang/unittests/AST/StmtPrinterTest.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/clang/unittests/AST/StmtPrinterTest.cpp b/clang/unittests/AST/StmtPrinterTest.cpp
index b6f340507164..ef80812886ae 100644
--- a/clang/unittests/AST/StmtPrinterTest.cpp
+++ b/clang/unittests/AST/StmtPrinterTest.cpp
@@ -232,15 +232,17 @@ TEST(StmtPrinter, TestCXXLamda) {
"[](auto a, int b, auto c, int, auto) {\n"
"}"));
- ASSERT_TRUE(PrintedStmtCXXMatches(StdVer::CXX2a,
- "void A() {"
- " auto l = []<typename T1, class T2, int I,"
- " template<class, typename> class T3>"
- " (int a, auto, int, auto d) { };"
- "}",
- lambdaExpr(anything()).bind("id"),
- "[]<typename T1, class T2, int I, template <class, typename> class T3>(int a, auto, int, auto d) {\n"
- "}"));
+ ASSERT_TRUE(
+ PrintedStmtCXXMatches(StdVer::CXX20,
+ "void A() {"
+ " auto l = []<typename T1, class T2, int I,"
+ " template<class, typename> class T3>"
+ " (int a, auto, int, auto d) { };"
+ "}",
+ lambdaExpr(anything()).bind("id"),
+ "[]<typename T1, class T2, int I, template <class, "
+ "typename> class T3>(int a, auto, int, auto d) {\n"
+ "}"));
}
TEST(StmtPrinter, TestNoImplicitBases) {