diff --git a/tests/Casm/Reg/positive/out/test044.out b/tests/Casm/Reg/positive/out/test044.out new file mode 100644 index 0000000000..b8626c4cff --- /dev/null +++ b/tests/Casm/Reg/positive/out/test044.out @@ -0,0 +1 @@ +4 diff --git a/tests/Casm/Reg/positive/test044.jvr b/tests/Casm/Reg/positive/test044.jvr new file mode 100644 index 0000000000..9cbaaa4bd6 --- /dev/null +++ b/tests/Casm/Reg/positive/test044.jvr @@ -0,0 +1,11 @@ + +function f(integer) : integer { + tmp[0] = add arg[0] 1; + ret tmp[0]; +} + +function main() { + tmp[0] = 2; + tmp[1] = add tmp[0] 1; + tcall f (tmp[1]); +}