aboutsummaryrefslogtreecommitdiff
path: root/test/asm-label.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-05-15 17:47:25 -0700
committerMichael Forney <mforney@mforney.org>2019-05-15 17:58:37 -0700
commit68726abdaa443926b8a1d939a6224dd12597e6af (patch)
tree51e70a72920de751de3c7b65675677de01b7ab93 /test/asm-label.c
parent46ec9b869105951521341db5d5a75aa55b156601 (diff)
Implement asm labels
Diffstat (limited to 'test/asm-label.c')
-rw-r--r--test/asm-label.c5
1 files changed, 5 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) {}