Skip to content

Commit 10a5497

Browse files
HighCommander4tru
authored andcommitted
Fix build error in StmtPrinterTest.cpp
(cherry picked from commit c933453)
1 parent e08c165 commit 10a5497

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

clang/unittests/AST/StmtPrinterTest.cpp

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,17 @@ TEST(StmtPrinter, TestCXXLamda) {
232232
"[](auto a, int b, auto c, int, auto) {\n"
233233
"}"));
234234

235-
ASSERT_TRUE(PrintedStmtCXXMatches(StdVer::CXX2a,
236-
"void A() {"
237-
" auto l = []<typename T1, class T2, int I,"
238-
" template<class, typename> class T3>"
239-
" (int a, auto, int, auto d) { };"
240-
"}",
241-
lambdaExpr(anything()).bind("id"),
242-
"[]<typename T1, class T2, int I, template <class, typename> class T3>(int a, auto, int, auto d) {\n"
243-
"}"));
235+
ASSERT_TRUE(
236+
PrintedStmtCXXMatches(StdVer::CXX20,
237+
"void A() {"
238+
" auto l = []<typename T1, class T2, int I,"
239+
" template<class, typename> class T3>"
240+
" (int a, auto, int, auto d) { };"
241+
"}",
242+
lambdaExpr(anything()).bind("id"),
243+
"[]<typename T1, class T2, int I, template <class, "
244+
"typename> class T3>(int a, auto, int, auto d) {\n"
245+
"}"));
244246
}
245247

246248
TEST(StmtPrinter, TestNoImplicitBases) {

0 commit comments

Comments
 (0)