Update the C status page for WG14 N2359
authorAaron Ballman <aaron@aaronballman.com>
Thu, 22 Sep 2022 17:04:27 +0000 (13:04 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 22 Sep 2022 17:05:49 +0000 (13:05 -0400)
We don't yet implement this paper, so this adds a basic test
demonstrating that.

clang/test/C/C2x/n2359.c [new file with mode: 0644]
clang/www/c_status.html

diff --git a/clang/test/C/C2x/n2359.c b/clang/test/C/C2x/n2359.c
new file mode 100644 (file)
index 0000000..3a6641f
--- /dev/null
@@ -0,0 +1,36 @@
+// RUN: %clang_cc1 -verify -std=c2x -ffreestanding %s
+
+/* WG14 N2359: no
+ * Remove conditional "WANT" macros from numbered clauses
+ */
+
+#include <limits.h>
+#ifndef __STDC_VERSION_LIMITS_H__
+#error "__STDC_VERSION_LIMITS_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_LIMITS_H__ not defined"}}
+#endif
+
+#include <stdarg.h>
+#ifndef __STDC_VERSION_STDARG_H__
+#error "__STDC_VERSION_STDARG_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_STDARG_H__ not defined"}}
+#endif
+
+#include <stdatomic.h>
+#ifndef __STDC_VERSION_STDATOMIC_H__
+#error "__STDC_VERSION_STDATOMIC_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_STDATOMIC_H__ not defined"}}
+#endif
+
+#include <stddef.h>
+#ifndef __STDC_VERSION_STDDEF_H__
+#error "__STDC_VERSION_STDDEF_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_STDDEF_H__ not defined"}}
+#endif
+
+#include <stdint.h>
+#ifndef __STDC_VERSION_STDINT_H__
+#error "__STDC_VERSION_STDINT_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_STDINT_H__ not defined"}}
+#endif
+
index 395bdf5..6333a0f 100644 (file)
@@ -675,7 +675,7 @@ conformance.</p>
       </tr>
       <tr> <!-- Pre-Oct 2019 -->
         <td><a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2359.pdf">N2359</a></td>
-        <td class="unknown" align="center">Unknown</td>
+        <td class="none" align="center">No</td>
       </tr>
       <tr> <!-- Nov 2020 -->
         <td><a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2546.pdf">N2546</a></td>