blob: 3c888ad43e1949a0b4da93ffdbdada5657dda80f [file] [log] [blame]
/* { dg-do run } */
extern "C" void abort (void);
extern "C" void exit (int);
void foo (int i)
{
static int n;
if (i < -128 || i > 127)
abort ();
if (++n > 1000)
exit (0);
}
int main ()
{
signed char c;
for (c = 0; ; c++) foo (c);
}