aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/const-init.c1
-rw-r--r--tests/const-init.qbe1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/const-init.c b/tests/const-init.c
new file mode 100644
index 0000000..4d33888
--- /dev/null
+++ b/tests/const-init.c
@@ -0,0 +1 @@
+const struct {struct {int x, y;} t;} s = {{{1}, 2}};
diff --git a/tests/const-init.qbe b/tests/const-init.qbe
new file mode 100644
index 0000000..fb5d305
--- /dev/null
+++ b/tests/const-init.qbe
@@ -0,0 +1 @@
+export data $s = align 4 { w 1, w 2, }