From 9018fa174598ab53567ef36b4bd171f47daf14f5 Mon Sep 17 00:00:00 2001
From: Aaron Ballman
Date: Thu, 22 Sep 2022 13:04:27 -0400
Subject: [PATCH] Update the C status page for WG14 N2359
We don't yet implement this paper, so this adds a basic test
demonstrating that.
---
clang/test/C/C2x/n2359.c | 36 ++++++++++++++++++++++++++++++++++++
clang/www/c_status.html | 2 +-
2 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 clang/test/C/C2x/n2359.c
diff --git a/clang/test/C/C2x/n2359.c b/clang/test/C/C2x/n2359.c
new file mode 100644
index 0000000..3a6641f
--- /dev/null
+++ b/clang/test/C/C2x/n2359.c
@@ -0,0 +1,36 @@
+// RUN: %clang_cc1 -verify -std=c2x -ffreestanding %s
+
+/* WG14 N2359: no
+ * Remove conditional "WANT" macros from numbered clauses
+ */
+
+#include
+#ifndef __STDC_VERSION_LIMITS_H__
+#error "__STDC_VERSION_LIMITS_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_LIMITS_H__ not defined"}}
+#endif
+
+#include
+#ifndef __STDC_VERSION_STDARG_H__
+#error "__STDC_VERSION_STDARG_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_STDARG_H__ not defined"}}
+#endif
+
+#include
+#ifndef __STDC_VERSION_STDATOMIC_H__
+#error "__STDC_VERSION_STDATOMIC_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_STDATOMIC_H__ not defined"}}
+#endif
+
+#include
+#ifndef __STDC_VERSION_STDDEF_H__
+#error "__STDC_VERSION_STDDEF_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_STDDEF_H__ not defined"}}
+#endif
+
+#include
+#ifndef __STDC_VERSION_STDINT_H__
+#error "__STDC_VERSION_STDINT_H__ not defined"
+// expected-error@-1 {{"__STDC_VERSION_STDINT_H__ not defined"}}
+#endif
+
diff --git a/clang/www/c_status.html b/clang/www/c_status.html
index 395bdf5..6333a0f 100644
--- a/clang/www/c_status.html
+++ b/clang/www/c_status.html
@@ -675,7 +675,7 @@ conformance.
N2359 |
- Unknown |
+ No |
N2546 |
--
2.7.4