polserver/testsuite/escript/compiler2/compiler2-087-pass-array-elem-byref.src
2020-08-13 15:26:09 +02:00

10 lines
No EOL
166 B
Text

function foo( byref elem )
elem := 12;
endfunction
program array12()
var a := { 82, 43, 56, 23, 51 };
print(a);
foo( a[2] );
print(a);
endprogram