aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/bad-phisrc1a.c
diff options
context:
space:
mode:
Diffstat (limited to 'validation/optim/bad-phisrc1a.c')
-rw-r--r--validation/optim/bad-phisrc1a.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/validation/optim/bad-phisrc1a.c b/validation/optim/bad-phisrc1a.c
new file mode 100644
index 00000000..cf07573b
--- /dev/null
+++ b/validation/optim/bad-phisrc1a.c
@@ -0,0 +1,24 @@
+int def(void);
+
+int fun4(struct xfrm_state *net, int cnt)
+{
+ int err = 0;
+ if (err)
+ goto out;
+ for (; net;)
+ err = def();
+ if (cnt)
+out:
+ return err;
+ return 0;
+}
+
+/*
+ * check-name: bad-phisrc1a
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-contains: select\\.
+ */
+