diff options
author | Nathan Ridge <zeratul976@hotmail.com> | 2022-09-05 03:48:17 -0400 |
---|---|---|
committer | Tobias Hieta <tobias@hieta.se> | 2022-09-28 08:16:42 +0200 |
commit | 10a54971b0d34f3b68b3213bcf82079dc2d00ae9 (patch) | |
tree | 988f462692de7538289227891455a39bcb67b68e /clang/unittests | |
parent | e08c165dd67a60635cc131ad7a73dcdb368d5e06 (diff) | |
download | llvm-10a54971b0d34f3b68b3213bcf82079dc2d00ae9.zip llvm-10a54971b0d34f3b68b3213bcf82079dc2d00ae9.tar.gz llvm-10a54971b0d34f3b68b3213bcf82079dc2d00ae9.tar.bz2 |
Fix build error in StmtPrinterTest.cpp
(cherry picked from commit c933453858307d060a1b79e257feb99c9ac828d7)
Diffstat (limited to 'clang/unittests')
-rw-r--r-- | clang/unittests/AST/StmtPrinterTest.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/clang/unittests/AST/StmtPrinterTest.cpp b/clang/unittests/AST/StmtPrinterTest.cpp index b6f3405..ef80812 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) { |