Skip to content

Commit 26d4e56

Browse files
committed
[Clang] Fix dedup-types-builtin.cpp test when -std=c++20
It was previously failing because of a warning marking a C++20 feature as an extension. This is a follow-up to 85043c1 that introduced the test.
1 parent bfab808 commit 26d4e56

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/test/SemaTemplate/dedup-types-builtin.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 %s -verify
1+
// RUN: %clang_cc1 %s -verify -Wno-c++20-extensions
22
template <typename...> struct TypeList;
33

44
// === Check results of the builtin.
@@ -211,8 +211,7 @@ InUsingDecl<WithFunc1, WithFunc2> iu2; // expected-note {{in instantiation of te
211211
template <class ...T>
212212
struct LambdaInitCaptures {
213213
static constexpr int test() {
214-
[...foos=__builtin_dedup_pack<T...>()]{}; // expected-warning {{initialized lambda pack captures are a C++20 extension}} \
215-
// expected-error 2{{expansions of '__builtin_dedup_pack' are not supported here.}}
214+
[...foos=__builtin_dedup_pack<T...>()]{}; // expected-error 2{{expansions of '__builtin_dedup_pack' are not supported here.}}
216215
return 3;
217216
}
218217
};

0 commit comments

Comments
 (0)