aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/bool-zext-test.c
diff options
Diffstat (limited to 'validation/optim/bool-zext-test.c')
-rw-r--r--validation/optim/bool-zext-test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/optim/bool-zext-test.c b/validation/optim/bool-zext-test.c
new file mode 100644
index 00000000..138938b0
--- /dev/null
+++ b/validation/optim/bool-zext-test.c
@@ -0,0 +1,12 @@
+_Bool equ0(unsigned char a) { return a == 0; }
+_Bool equ1(unsigned char a) { return a == 1; }
+_Bool neu0(unsigned char a) { return a != 0; }
+_Bool neu1(unsigned char a) { return a != 1; }
+
+/*
+ * check-name: bool-zext-test
+ * check-command: test-linearize -Wno-decl $file
+ *
+ * check-output-ignore
+ * check-output-excludes: zext\\.
+ */