-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C11] Claim conformance to WG14 N1514
This paper made Annex G a normative, but conditionally supported, annex. Clang does not implement Annex G, so we conform to this paper.
- Loading branch information
1 parent
910d2de
commit f48895a
Showing
2 changed files
with
18 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,14 @@ | ||
// RUN: %clang_cc1 -verify -std=c11 %s | ||
// expected-no-diagnostics | ||
|
||
/* WG14 N1514: Yes | ||
* Conditional normative status for Annex G | ||
*/ | ||
|
||
// We don't support Annex G (which introduces imaginary types), but support for | ||
// this annex is conditional in C11. So we can test for conformance to this | ||
// paper by ensuring we don't define the macro claiming we support Annex G. | ||
|
||
#ifdef __STDC_IEC_559_COMPLEX__ | ||
#error "when did this happen??" | ||
#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