summary refs log tree commit diff
path: root/lisc/test/fix2.ssa
diff options
context:
space:
mode:
Diffstat (limited to 'lisc/test/fix2.ssa')
-rw-r--r--lisc/test/fix2.ssa12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisc/test/fix2.ssa b/lisc/test/fix2.ssa
index 94f1573..5ffbd28 100644
--- a/lisc/test/fix2.ssa
+++ b/lisc/test/fix2.ssa
@@ -1,13 +1,15 @@
-@start
+function $test {
+ @start
 	%x =w copy 1
-@loop
+ @loop
 	jnz %x, @noz, @isz
-@noz
+ @noz
 	%x =w copy 0
 	jnz %x, @loop, @end
-@isz
+ @isz
 	%x =w copy 1
 	jmp @loop
-@end
+ @end
 	%z =w add 10, %x
 	ret
+}