mirror of
https://github.com/dschmenk/PLASMA.git
synced 2026-01-26 13:16:25 +00:00
Add another multivalue return test for pointer lvalues
This commit is contained in:
@@ -83,7 +83,7 @@ def vals123#3
|
||||
return 1, 2, 3
|
||||
end
|
||||
export def main(range)#0
|
||||
word a, b, c
|
||||
word a, b, c, valptr
|
||||
word lambda
|
||||
|
||||
a = 10
|
||||
@@ -125,6 +125,10 @@ export def main(range)#0
|
||||
drop, b, drop = vals123
|
||||
drop, drop, c = vals123
|
||||
puts("a, b, c = "); puti(a); puts(", "); puti(b); puts(", "); puti(c); putln
|
||||
a, b, c = 0, 0, 0
|
||||
valptr = @a
|
||||
valptr=>[a], valptr=>[1], valptr=>[2] = vals123
|
||||
puts("a, b, c = "); puti(a); puts(", "); puti(b); puts(", "); puti(c); putln
|
||||
puts(" 7 / 3 = "); puti(7/3); puts(" ; 7 % 3 = "); puti(7%3); putln
|
||||
puts(" 7 / -3 = "); puti(7/-3); puts("; 7 % -3 = "); puti(7%-3); putln
|
||||
puts("-7 / 3 = "); puti(-7/3); puts("; -7 % 3 = "); puti(-7%3); putln
|
||||
|
||||
Reference in New Issue
Block a user