aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--validation/optim/missing-select.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/validation/optim/missing-select.c b/validation/optim/missing-select.c
new file mode 100644
index 00000000..4796e058
--- /dev/null
+++ b/validation/optim/missing-select.c
@@ -0,0 +1,24 @@
+static int foo(int **g)
+{
+ int i = 1;
+ int *a[2];
+ int **p;
+
+ a[1] = &i;
+ if (g)
+ p = g;
+ else
+ p = &a[0];
+ if (!g)
+ **p = 0;
+ return i;
+}
+
+/*
+ * check-name: missing-select
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-contains: select\\.
+ */