-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the C status page for WG14 N2359
We don't yet implement this paper, so this adds a basic test demonstrating that.
- Loading branch information
1 parent
cb3d026
commit 9018fa1
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters