We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08c165 commit 10a5497Copy full SHA for 10a5497
clang/unittests/AST/StmtPrinterTest.cpp
@@ -232,15 +232,17 @@ TEST(StmtPrinter, TestCXXLamda) {
232
"[](auto a, int b, auto c, int, auto) {\n"
233
"}"));
234
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
- "}"));
+ 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, "
244
+ "typename> class T3>(int a, auto, int, auto d) {\n"
245
+ "}"));
246
}
247
248
TEST(StmtPrinter, TestNoImplicitBases) {
0 commit comments