leo/tests/compiler/function/array_params_direct_call.leo

18 lines
279 B
Plaintext
Raw Normal View History

2021-05-05 18:29:44 +03:00
/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
2021-05-05 18:29:44 +03:00
*/
2021-02-08 23:42:37 +03:00
function do_nothing(arr: [u32; 2]) {}
function main(y: bool) -> bool {
const arr: [u32; 2] = [0; 2];
2021-02-08 23:42:37 +03:00
do_nothing(arr);
do_nothing([...arr]);
2021-03-22 19:38:01 +03:00
do_nothing(arr[0u32..]);
return y == true;
2021-05-05 18:29:44 +03:00
}