Skip to content

Commit

Permalink
Update the C status page for WG14 N2359
Browse files Browse the repository at this point in the history
We don't yet implement this paper, so this adds a basic test
demonstrating that.
  • Loading branch information
AaronBallman committed Sep 22, 2022
1 parent cb3d026 commit 9018fa1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions clang/test/C/C2x/n2359.c
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion clang/www/c_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 9018fa1

Please sign in to comment.