diff options
Diffstat (limited to 'tests/test-pedantic-compilation.c')
-rw-r--r-- | tests/test-pedantic-compilation.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-pedantic-compilation.c b/tests/test-pedantic-compilation.c index 269ea080d..bb88d1a82 100644 --- a/tests/test-pedantic-compilation.c +++ b/tests/test-pedantic-compilation.c @@ -17,10 +17,16 @@ #include <stdio.h> +#ifdef __STDC_VERSION__ unsigned long stdc_version = __STDC_VERSION__; +#endif int main() { +#ifdef __STDC_VERSION__ printf("stdc_version = %lu\n", stdc_version); +#else + printf("stdc_version = undefined\n"); +#endif return 0; } |