summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20031222-1.c
blob: b0d1a2dc43c4e92faf6f0cd6a29bc0f245d65ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR c/9163 */
/* The following test used to ICE after an error message in C99 mode
   because GCC was trying to expand the tree to rtl.  */

/* { dg-do compile } */
/* { dg-options "-std=c99" } */



void f ()
{
	for (; int ; ); /* { dg-error "" } */
}

void foo ()
{
        while (int i); /* { dg-error "" } */
}