Author: Aaron Ballman Date: 2022-09-22T13:05:49-04:00 New Revision: 9018fa174598ab53567ef36b4bd171f47daf14f5
URL: https://github.com/llvm/llvm-project/commit/9018fa174598ab53567ef36b4bd171f47daf14f5 DIFF: https://github.com/llvm/llvm-project/commit/9018fa174598ab53567ef36b4bd171f47daf14f5.diff LOG: Update the C status page for WG14 N2359 We don't yet implement this paper, so this adds a basic test demonstrating that. Added: clang/test/C/C2x/n2359.c Modified: clang/www/c_status.html Removed: ################################################################################ diff --git a/clang/test/C/C2x/n2359.c b/clang/test/C/C2x/n2359.c new file mode 100644 index 0000000000000..3a6641fbeaede --- /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 <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 + diff --git a/clang/www/c_status.html b/clang/www/c_status.html index 395bdf5d22da9..6333a0f07191f 100644 --- a/clang/www/c_status.html +++ b/clang/www/c_status.html @@ -675,7 +675,7 @@ <h2 id="c2x">C2x implementation status</h2> </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> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits