leo/tests/compiler/array/multi_initializer.leo

13 lines
233 B
Plaintext
Raw Normal View History

2021-05-05 21:25:24 +03:00
/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
*/
2020-09-03 02:49:06 +03:00
2021-05-05 21:25:24 +03:00
function main(y: bool) -> bool {
const a: [u8; (2, 2, 2)] = [1u8; (2, 2, 2)];
const b: [u8; (2, 2, 2)] = [[[1u8; 2]; 2]; 2];
2020-09-03 02:49:06 +03:00
2021-07-01 23:40:29 +03:00
return (a == b) == y;
2021-05-05 21:25:24 +03:00
}