Skip to content

Commit 18e6cfd

Browse files
authored
Update test added in #154418 to work when the default is C++20. (#154463)
1 parent 9ae0bd2 commit 18e6cfd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/test/SemaTemplate/nested-name-spec-template.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -verify %s
1+
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-c++20-extensions
22
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
33
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
44

@@ -174,7 +174,6 @@ namespace SubstTemplateTypeParmPackType {
174174

175175
template <class... Ts> void f() {
176176
[]<int ... Is>(A<Is...>) { (Ts::g(Is) && ...); }(A<0>{});
177-
// expected-warning@-1 {{explicit template parameter list for lambdas is a C++20 extension}}
178177
};
179178

180179
struct B { static void g(int); };

0 commit comments

Comments
 (0)