41 lines · c
1// RUN: %clang_cc1 -verify -std=c2x -ffreestanding %s2 3/* WG14 N2359: no4 * Remove conditional "WANT" macros from numbered clauses5 */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#endif12 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#endif18 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#endif24 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#endif30 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#endif36 37#include <stdckdint.h>38#ifndef __STDC_VERSION_STDCKDINT_H__39#error "__STDC_VERSION_STDCKDINT_H__ not defined"40#endif41