aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/select-select-true-false1.c
diff options
Diffstat (limited to 'validation/optim/select-select-true-false1.c')
-rw-r--r--validation/optim/select-select-true-false1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/validation/optim/select-select-true-false1.c b/validation/optim/select-select-true-false1.c
new file mode 100644
index 00000000..00ffdcd1
--- /dev/null
+++ b/validation/optim/select-select-true-false1.c
@@ -0,0 +1,14 @@
+int foo(int p)
+{
+ int t = (p ? 42 : 0);
+ return (t ? 42 : 0) == ( p ? 42 : 0);
+}
+
+/*
+ * check-name: select-select-true-false1
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-returns: 1
+ */