[clang] a75879d - Update the status of some C2x features
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 28 11:46:24 PDT 2022
Author: Aaron Ballman
Date: 2022-10-28T14:46:16-04:00
New Revision: a75879d9a992e23e097c27b2a9f100dc4d698928
URL: https://github.com/llvm/llvm-project/commit/a75879d9a992e23e097c27b2a9f100dc4d698928
DIFF: https://github.com/llvm/llvm-project/commit/a75879d9a992e23e097c27b2a9f100dc4d698928.diff
LOG: Update the status of some C2x features
Only N2670 had testable changes in it, the rest can be trivially
assumed to be implemented as the changes are editorial.
Added:
clang/test/C/C2x/n2670.c
Modified:
clang/www/c_status.html
Removed:
################################################################################
diff --git a/clang/test/C/C2x/n2670.c b/clang/test/C/C2x/n2670.c
new file mode 100644
index 000000000000..1a9fd96d9bd2
--- /dev/null
+++ b/clang/test/C/C2x/n2670.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -std=c2x -verify %s
+// expected-no-diagnostics
+
+/* WG14 N2670: yes
+ * Zeros compare equal
+ */
+_Static_assert(-1 * 0.0 == 0.0, "");
+_Static_assert(!(-1 * 0.0 < 0.0), "");
diff --git a/clang/www/c_status.html b/clang/www/c_status.html
index ab668b630c35..82a40f2ec1d7 100644
--- a/clang/www/c_status.html
+++ b/clang/www/c_status.html
@@ -850,7 +850,7 @@ <h2 id="c2x">C2x implementation status</h2>
<tr>
<td>Missing +(x) in table</td>
<td><a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2641.htm">N2641</a></td>
- <td class="unknown" align="center">Unknown</td>
+ <td class="full" align="center">Yes</td>
</tr>
<tr>
<td>Add support for preprocessing directives elifdef and elifndef</td>
@@ -866,7 +866,7 @@ <h2 id="c2x">C2x implementation status</h2>
<tr>
<td>Zeros compare equal</td>
<td><a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2670.pdf">N2670</a></td>
- <td class="unknown" align="center">Unknown</td>
+ <td class="full" align="center">Yes</td>
</tr>
<tr>
<td>Negative values</td>
@@ -916,7 +916,7 @@ <h2 id="c2x">C2x implementation status</h2>
<tr>
<td>Numerically equal</td>
<td><a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2716.htm">N2716</a></td>
- <td class="unknown" align="center">Unknown</td>
+ <td class="full" align="center">Yes</td>
</tr>
<tr>
<td>char16_t & char32_t string literals shall be UTF-16 & UTF-32</td>
@@ -1058,7 +1058,7 @@ <h2 id="c2x">C2x implementation status</h2>
<tr>
<td>Revised Suggestions of Change for Numerically Equal/Equivalent</td>
<td><a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2847.pdf">N2847</a></td>
- <td class="unknown" align="center">Unknown</td>
+ <td class="full" align="center">Yes</td>
</tr>
<tr>
<td>5.2.4.2.2 Cleanup, Again Again (N2806 update)</td>
More information about the cfe-commits
mailing list