aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/sizeof-string-literal.c1
-rw-r--r--test/sizeof-string-literal.qbe1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/sizeof-string-literal.c b/test/sizeof-string-literal.c
new file mode 100644
index 0000000..9042d82
--- /dev/null
+++ b/test/sizeof-string-literal.c
@@ -0,0 +1 @@
+int x = sizeof("abc");
diff --git a/test/sizeof-string-literal.qbe b/test/sizeof-string-literal.qbe
new file mode 100644
index 0000000..23be3d8
--- /dev/null
+++ b/test/sizeof-string-literal.qbe
@@ -0,0 +1 @@
+export data $x = align 4 { w 4, }