From 7e5d1aca647f13c0ae3a7cb0d4aff602e6bf7bea Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 14 Feb 2019 01:41:25 -0800 Subject: Allow initializing array with longer strings --- tests/initializer-long-string.c | 1 + tests/initializer-long-string.qbe | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/initializer-long-string.c create mode 100644 tests/initializer-long-string.qbe (limited to 'tests') 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", } -- cgit v1.2.3