aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/initializer-long-string.c1
-rw-r--r--tests/initializer-long-string.qbe1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/initializer-long-string.c b/tests/initializer-long-string.c
new file mode 100644
index 0000000..4de06d4
--- /dev/null
+++ b/tests/initializer-long-string.c
@@ -0,0 +1 @@
+char s[4] = "hello";
diff --git a/tests/initializer-long-string.qbe b/tests/initializer-long-string.qbe
new file mode 100644
index 0000000..3aa2f6f
--- /dev/null
+++ b/tests/initializer-long-string.qbe
@@ -0,0 +1 @@
+export data $s = align 1 { b "hell", }