[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / C / C2x / n2359.c
blob3a6641fbeaede28106899989ff85d54da68e7625
1 // RUN: %clang_cc1 -verify -std=c2x -ffreestanding %s
3 /* WG14 N2359: no
4 * Remove conditional "WANT" macros from numbered clauses
5 */
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
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
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
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
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