repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
c17-version-2.c
blob
3f36720409479ed5eb5e80d200114a23b98083cb
1
/* Test __STDC_VERSION__ for C17. Test -std=iso9899:2017. */
2
/* { dg-do compile } */
3
/* { dg-options "-std=iso9899:2017 -pedantic-errors" } */
4
5
#if __STDC_VERSION__ == 201710L
6
int
i
;
7
#else
8
#error
"Bad __STDC_VERSION__."
9
#endif