1 // RUN: %clang_cc1 -verify -std=c2x -ffreestanding %s 2 3 /* WG14 N2359: no 4 * Remove conditional "WANT" macros from numbered clauses 5 */ 6 7 #include <limits.h> 8 #ifndef __STDC_VERSION_LIMITS_H__ 9 #error "__STDC_VERSION_LIMITS_H__ not defined" 10 // expected-error@-1 {{"__STDC_VERSION_LIMITS_H__ not defined"}} 11 #endif 12 13 #include <stdarg.h> 14 #ifndef __STDC_VERSION_STDARG_H__ 15 #error "__STDC_VERSION_STDARG_H__ not defined" 16 // expected-error@-1 {{"__STDC_VERSION_STDARG_H__ not defined"}} 17 #endif 18 19 #include <stdatomic.h> 20 #ifndef __STDC_VERSION_STDATOMIC_H__ 21 #error "__STDC_VERSION_STDATOMIC_H__ not defined" 22 // expected-error@-1 {{"__STDC_VERSION_STDATOMIC_H__ not defined"}} 23 #endif 24 25 #include <stddef.h> 26 #ifndef __STDC_VERSION_STDDEF_H__ 27 #error "__STDC_VERSION_STDDEF_H__ not defined" 28 // expected-error@-1 {{"__STDC_VERSION_STDDEF_H__ not defined"}} 29 #endif 30 31 #include <stdint.h> 32 #ifndef __STDC_VERSION_STDINT_H__ 33 #error "__STDC_VERSION_STDINT_H__ not defined" 34 // expected-error@-1 {{"__STDC_VERSION_STDINT_H__ not defined"}} 35 #endif 36 37 #include <stdckdint.h> 38 #ifndef __STDC_VERSION_STDCKDINT_H__ 39 #error "__STDC_VERSION_STDCKDINT_H__ not defined" 40 #endif 41