comparison gcc/testsuite/gcc.dg/c11-version-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Test __STDC_VERSION__ for C11. Test -std=c11. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11 -pedantic-errors" } */
4
5 #if __STDC_VERSION__ == 201112L
6 int i;
7 #else
8 #error "Bad __STDC_VERSION__."
9 #endif