summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wc90-c99-compat-9.c
blob: 8bd996c8c257f5c40dc5e1649333009a5cd23f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR c/85318 */
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -Wc90-c99-compat -pedantic-errors" } */

extern void bar (int);

void
foo (int n)
{
  for (int i = 0; i < n; i++) /* { dg-warning "ISO C90 does not support .for. loop" } */
    bar (i);
}