summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20030920-1.c
blob: 2d22115c9fd92141744202e32863b961267a4aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern void abort (void);

int main()
{
  int hicount = 0;
  unsigned char *c;
  char *str = "\x7f\xff";
  for (c = (unsigned char *)str; *c ; c++) {
    if (!(((unsigned int)(*c)) < 0x80)) hicount++;
  }
  if (hicount != 1)
    abort ();
  return 0;
}