aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/c11-version-1.c
blob: 9ab7936d1ed3db6235ecebe80454593d41d25af2 (plain)
1
2
3
4
5
6
7
8
9
/* Test __STDC_VERSION__ for C11.  Test -std=c11.  */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors" } */

#if __STDC_VERSION__ == 201112L
int i;
#else
#error "Bad __STDC_VERSION__."
#endif