aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--validation/mem2reg/load-dead.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/validation/mem2reg/load-dead.c b/validation/mem2reg/load-dead.c
new file mode 100644
index 00000000..19ac4e5e
--- /dev/null
+++ b/validation/mem2reg/load-dead.c
@@ -0,0 +1,19 @@
+int fun(int);
+
+static inline int fake(void)
+{
+}
+
+static void foo(int a)
+{
+ 0 || fun((a, fake(), a));
+}
+
+/*
+ * check-name: load-dead
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-excludes: VOID
+ */