summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/doloop-1.c
blob: d2394a62ec2613295c4660f8778129e6d2c6d5bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <limits.h>

extern void exit (int);
extern void abort (void);

volatile unsigned int i;

int
main (void)
{
  unsigned char z = 0;

  do ++i;
  while (--z > 0);
  if (i != UCHAR_MAX + 1U)
    abort ();
  exit (0);
}