]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/c2x-stddef-1.c
testsuite: Refer more consistently to C23 not C2X
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / c2x-stddef-1.c
1 /* Test __STDC_VERSION_STDDEF_H__ in C23. */
2 /* { dg-do preprocess } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4
5 #include <stddef.h>
6
7 #ifndef __STDC_VERSION_STDDEF_H__
8 #error "__STDC_VERSION_STDDEF_H__ not defined"
9 #endif
10
11 #if __STDC_VERSION_STDDEF_H__ != 202311L
12 #error "bad value of __STDC_VERSION_STDDEF_H__"
13 #endif