aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/extern-initializer.c1
-rw-r--r--test/extern-initializer.qbe1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/extern-initializer.c b/test/extern-initializer.c
new file mode 100644
index 0000000..a17c036
--- /dev/null
+++ b/test/extern-initializer.c
@@ -0,0 +1 @@
+extern int x = 1;
diff --git a/test/extern-initializer.qbe b/test/extern-initializer.qbe
new file mode 100644
index 0000000..9814f66
--- /dev/null
+++ b/test/extern-initializer.qbe
@@ -0,0 +1 @@
+export data $x = align 4 { w 1, }