llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Vlad Serebrennikov (Endilll)

<details>
<summary>Changes</summary>

This is a small fix for `#if __cplusplus &gt;= 202002L` condition, which 
accidentally disabled this part of the test in C++20 mode.

---
Full diff: https://github.com/llvm/llvm-project/pull/189310.diff


1 Files Affected:

- (modified) clang/test/CXX/drs/cwg25xx.cpp (+1-1) 


``````````diff
diff --git a/clang/test/CXX/drs/cwg25xx.cpp b/clang/test/CXX/drs/cwg25xx.cpp
index 9f83a17d4b1c3..d5219bcd74756 100644
--- a/clang/test/CXX/drs/cwg25xx.cpp
+++ b/clang/test/CXX/drs/cwg25xx.cpp
@@ -378,7 +378,7 @@ struct Literal { constexpr Literal() {} };
 union union6 { NonLiteral NL; Literal L; };
 static_assert(__is_literal(union6), "");
 
-#if __cplusplus >= 202003L
+#if __cplusplus >= 202002L
 struct A { A(); };
 union U {
   A a;

``````````

</details>


https://github.com/llvm/llvm-project/pull/189310
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to