summaryrefslogtreecommitdiff
path: root/test/regression/char1.c
blob: 9da4f52ef29b4343361e0f2eec8d7bc5a6e22d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <limits.h>

int foo (char x) {
  char y = x;
  return ++x > y;
}

int main (void) {
  int i;
  for (i=CHAR_MIN; i<=CHAR_MAX; i++) {
    printf ("%d ", foo(i));
    if ((i&31)==31) printf ("\n");
  }
  return 0;
}