summaryrefslogtreecommitdiff
path: root/test/regression/char1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/char1.c')
-rw-r--r--test/regression/char1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/regression/char1.c b/test/regression/char1.c
new file mode 100644
index 0000000..9da4f52
--- /dev/null
+++ b/test/regression/char1.c
@@ -0,0 +1,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;
+}