Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gcc.dg
/
c18-version-2.c
blob: 8786402bb64a09b9e510864ae87dec26e1ab52cf [
file
] [
log
] [
blame
]
/* Test __STDC_VERSION__ for C17. Test -std=iso9899:2018. */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:2018 -pedantic-errors" } */
#if __STDC_VERSION__ == 201710L
int
i
;
#else
#error
"Bad __STDC_VERSION__."
#endif