view gcc/testsuite/gcc.dg/20031222-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* 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 "" } */
}