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

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