aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/asm-label.c5
-rw-r--r--test/asm-label.qbe7
2 files changed, 12 insertions, 0 deletions
diff --git a/test/asm-label.c b/test/asm-label.c
new file mode 100644
index 0000000..b9489da
--- /dev/null
+++ b/test/asm-label.c
@@ -0,0 +1,5 @@
+int x __asm__("y");
+int x = 2;
+
+void f(void) __asm__("g");
+void f(void) {}
diff --git a/test/asm-label.qbe b/test/asm-label.qbe
new file mode 100644
index 0000000..b7cda41
--- /dev/null
+++ b/test/asm-label.qbe
@@ -0,0 +1,7 @@
+export data $"y" = align 4 { w 2, }
+export
+function $"g"() {
+@start.1
+@body.2
+ ret
+}