diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/c23-limits-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/c23-limits-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c23-limits-1.c b/gcc/testsuite/gcc.dg/c23-limits-1.c new file mode 100644 index 0000000..58b5bdf --- /dev/null +++ b/gcc/testsuite/gcc.dg/c23-limits-1.c @@ -0,0 +1,13 @@ +/* Test __STDC_VERSION_LIMITS_H__ in C23. */ +/* { dg-do preprocess } */ +/* { dg-options "-std=c23 -pedantic-errors" } */ + +#include <limits.h> + +#ifndef __STDC_VERSION_LIMITS_H__ +#error "__STDC_VERSION_LIMITS_H__ not defined" +#endif + +#if __STDC_VERSION_LIMITS_H__ != 202311L +#error "bad value of __STDC_VERSION_LIMITS_H__" +#endif |