aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/select-constant-cond.c
diff options
Diffstat (limited to 'validation/optim/select-constant-cond.c')
-rw-r--r--validation/optim/select-constant-cond.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/validation/optim/select-constant-cond.c b/validation/optim/select-constant-cond.c
new file mode 100644
index 00000000..a9337e2c
--- /dev/null
+++ b/validation/optim/select-constant-cond.c
@@ -0,0 +1,10 @@
+int t(int p, int a, int b) { return ((p == p) ? a : b) == a; }
+int f(int p, int a, int b) { return ((p != p) ? a : b) == b; }
+
+/*
+ * check-name: select-constant-cond
+ * check-command: test-linearize -Wno-decl $file
+ *
+ * check-output-ignore
+ * check-output-returns: 1
+ */