aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/pr61741.c
blob: a2bc4bda38f2f08448e074dac6ea7c3bf048bd7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do run } */

int a = 1, b;

void
foo (void)
{
  signed char c = 0;
  for (; a; a--)
    for (; c >= 0; c++);
  if (!c)
    b = 1;
}

int
main ()
{
  foo ();
  if (b != 0)
    __builtin_abort ();
  return 0;
}