[Clang][NFC] Mark 3106 as implemented.#192256
Conversation
|
@llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) ChangesThis was a wording clarification, but we add a test nonetheless. Full diff: https://github.com/llvm/llvm-project/pull/192256.diff 2 Files Affected:
diff --git a/clang/test/CXX/drs/cwg31xx.cpp b/clang/test/CXX/drs/cwg31xx.cpp
new file mode 100644
index 0000000000000..8b0200a1375f9
--- /dev/null
+++ b/clang/test/CXX/drs/cwg31xx.cpp
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -std=c++98 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++11 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++14 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++17 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++20 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++23 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++2c -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+
+
+namespace cwg3106 { // cwg3106: yes
+
+constexpr const char* str = R"(\u{1234})";
+static_assert(str[0] == '\\');
+
+} // namespace cwg3106
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html
index cb0236b46e580..04ffa0080fce6 100755
--- a/clang/www/cxx_dr_status.html
+++ b/clang/www/cxx_dr_status.html
@@ -21563,7 +21563,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td>[<a href="https://wg21.link/lex.universal.char">lex.universal.char</a>]</td>
<td>DR</td>
<td>Redundant exclusion of (non-existent) UCNs in <I>r-char-sequence</I>s</td>
- <td class="unknown" align="center">Unknown</td>
+ <td class="full" align="center">Yes</td>
</tr>
<tr id="3107">
<td><a href="https://cplusplus.github.io/CWG/issues/3107.html">3107</a></td>
|
This was a wording clarification, but we add a test nonetheless.
🐧 Linux x64 Test Results
✅ The build succeeded and all tests passed. |
🪟 Windows x64 Test Results
✅ The build succeeded and all tests passed. |
Endilll
left a comment
There was a problem hiding this comment.
Sorry, it took me a bit to realize, but the test should be gated to C++11 and newer modes because of raw string literals.
Endilll
left a comment
There was a problem hiding this comment.
You forgot to re-run make_cxx_dr_status.
LGTM otherwise.
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/29437 Here is the relevant piece of the build log for the reference |
This was a wording clarification, but we add a test nonetheless.