1 # skip arm64 arm64_apple rv64
3 # we use a dark type to get
4 # a pointer to the stack.
6 type :magic = align 1 { 0 }
11 function $test(:magic %p) {
15 storew %a1, $a # increment $a
16 %r1 =l loadl $ret # fetch from $ret
18 %r2 =l loadl %p1 # get the return address
19 storel %r2, $ret # store it in $ret
23 %i =w call $test() # no argument given, intentionally!
29 # extern void test(void);
31 # int main() { test(); return !(a == 5); }