Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/Wc90-c99-compat-9.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* PR c/85318 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-std=gnu99 -Wc90-c99-compat -pedantic-errors" } */ | |
4 | |
5 extern void bar (int); | |
6 | |
7 void | |
8 foo (int n) | |
9 { | |
10 for (int i = 0; i < n; i++) /* { dg-warning "ISO C90 does not support .for. loop" } */ | |
11 bar (i); | |
12 } |