aboutsummaryrefslogtreecommitdiff
path: root/test/attribute-syntax.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/attribute-syntax.qbe')
-rw-r--r--test/attribute-syntax.qbe22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/attribute-syntax.qbe b/test/attribute-syntax.qbe
new file mode 100644
index 0000000..ad8f4cc
--- /dev/null
+++ b/test/attribute-syntax.qbe
@@ -0,0 +1,22 @@
+export
+function $f(w %.1, w %.3) {
+@start.1
+ %.2 =l alloc4 4
+ storew %.1, %.2
+ %.4 =l alloc4 4
+ storew %.3, %.4
+@body.2
+ jnz 0, @if_true.3, @if_false.4
+@if_true.3
+@if_false.4
+@L1.5
+@L2.6
+ ret
+}
+export data $a = align 4 { z 4 }
+export data $b = align 4 { z 4 }
+export data $c = align 4 { z 4 }
+export data $d = align 4 { z 4 }
+export data $x = align 4 { z 4 }
+export data $array = align 4 { z 32 }
+export data $pointer = align 8 { z 8 }