aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr35634.c
blob: 73f860f2b10c225df718236d573fe9602274555d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do run } */

void abort (void);
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);
}