xref: /llvm-project/clang/test/C/C11/n1514.c (revision f48895a8be517be058153385438ad64fa09d4883)
1 // RUN: %clang_cc1 -verify -std=c11 %s
2 // expected-no-diagnostics
3 
4 /* WG14 N1514: Yes
5  * Conditional normative status for Annex G
6  */
7 
8 // We don't support Annex G (which introduces imaginary types), but support for
9 // this annex is conditional in C11. So we can test for conformance to this
10 // paper by ensuring we don't define the macro claiming we support Annex G.
11 
12 #ifdef __STDC_IEC_559_COMPLEX__
13 #error "when did this happen??"
14 #endif
15