aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/eval/addressable-degen.c
diff options
context:
space:
mode:
Diffstat (limited to 'validation/eval/addressable-degen.c')
-rw-r--r--validation/eval/addressable-degen.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/validation/eval/addressable-degen.c b/validation/eval/addressable-degen.c
new file mode 100644
index 00000000..e1dc5107
--- /dev/null
+++ b/validation/eval/addressable-degen.c
@@ -0,0 +1,18 @@
+extern void def(void *, unsigned int);
+
+static int bar(void)
+{
+ int x[2] = { 1, 2 };
+
+ def(x, sizeof(x));
+ return x[1];
+}
+
+/*
+ * check-name: eval/addressable-degen
+ * check-command: test-linearize -fdump-ir $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-contains: load\\.
+ */