aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/bool-sext-test.c
diff options
Diffstat (limited to 'validation/optim/bool-sext-test.c')
-rw-r--r--validation/optim/bool-sext-test.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/validation/optim/bool-sext-test.c b/validation/optim/bool-sext-test.c
new file mode 100644
index 00000000..0ca3dea9
--- /dev/null
+++ b/validation/optim/bool-sext-test.c
@@ -0,0 +1,13 @@
+_Bool eqs0( signed char a) { return a == 0; }
+_Bool eqs1( signed char a) { return a == 1; }
+_Bool nes0( signed char a) { return a != 0; }
+_Bool nes1( signed char a) { return a != 1; }
+
+/*
+ * check-name: bool-sext-test
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-excludes: sext\\.
+ */