2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-version-1.c
blob9ab7936d1ed3db6235ecebe80454593d41d25af2
1 /* Test __STDC_VERSION__ for C11. Test -std=c11. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11 -pedantic-errors" } */
5 #if __STDC_VERSION__ == 201112L
6 int i;
7 #else
8 #error "Bad __STDC_VERSION__."
9 #endif