Author: Ilya Biryukov
Date: 2025-08-21T11:05:02+02:00
New Revision: 26d4e56be81adbaa8aeed7f5cde39b779d959fc3

URL: 
https://github.com/llvm/llvm-project/commit/26d4e56be81adbaa8aeed7f5cde39b779d959fc3
DIFF: 
https://github.com/llvm/llvm-project/commit/26d4e56be81adbaa8aeed7f5cde39b779d959fc3.diff

LOG: [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 85043c1c146fd5658ad4c5b5138e58994333e645 that
introduced the test.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaTemplate/dedup-types-builtin.cpp 
b/clang/test/SemaTemplate/dedup-types-builtin.cpp
index 860754da4d628..fe6efd7901695 100644
--- a/clang/test/SemaTemplate/dedup-types-builtin.cpp
+++ b/clang/test/SemaTemplate/dedup-types-builtin.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -verify
+// RUN: %clang_cc1 %s -verify -Wno-c++20-extensions
 template <typename...> struct TypeList;
 
 // === Check results of the builtin.
@@ -211,8 +211,7 @@ InUsingDecl<WithFunc1, WithFunc2> iu2; // expected-note 
{{in instantiation of te
 template <class ...T>
 struct LambdaInitCaptures {
   static constexpr int test() {
-    [...foos=__builtin_dedup_pack<T...>()]{}; // expected-warning 
{{initialized lambda pack captures are a C++20 extension}} \
-                                              // expected-error 2{{expansions 
of '__builtin_dedup_pack' are not supported here.}}
+    [...foos=__builtin_dedup_pack<T...>()]{}; // expected-error 2{{expansions 
of '__builtin_dedup_pack' are not supported here.}}
     return 3;
   }
 };


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to