Add -std=c17, -std=gnu17.
[official-gcc.git] / gcc / testsuite / gcc.dg / c17-version-1.c
blob4e69a6eec11b647ec0e277d63a7cbd6d95469c46
1 /* Test __STDC_VERSION__ for C17. Test -std=c17. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c17 -pedantic-errors" } */
5 #if __STDC_VERSION__ == 201710L
6 int i;
7 #else
8 #error "Bad __STDC_VERSION__."
9 #endif