Fix build error in StmtPrinterTest.cpp
authorNathan Ridge <zeratul976@hotmail.com>
Mon, 5 Sep 2022 07:48:17 +0000 (03:48 -0400)
committerNathan Ridge <zeratul976@hotmail.com>
Mon, 5 Sep 2022 07:48:46 +0000 (03:48 -0400)
clang/unittests/AST/StmtPrinterTest.cpp

index b6f3405..ef80812 100644 (file)
@@ -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) {