aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/range-check2.c
diff options
context:
space:
mode:
Diffstat (limited to 'validation/optim/range-check2.c')
-rw-r--r--validation/optim/range-check2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/validation/optim/range-check2.c b/validation/optim/range-check2.c
new file mode 100644
index 00000000..f565b84e
--- /dev/null
+++ b/validation/optim/range-check2.c
@@ -0,0 +1,15 @@
+#define N 1024
+
+_Bool check_ok(int i)
+{
+ return (i >= 0 && i < N) == (((unsigned int)i) < N);
+}
+
+/*
+ * check-name: range-check2
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-returns: 1
+ */