leo/tests/compiler/stdlib/strings.leo
2021-09-10 05:55:07 -07:00

15 lines
272 B
Plaintext

// namespace: Compile
// expectation: Pass
// inputs:
// - hello.in: |
// [main]
// hello: [char; 5] = "hello";
// [registers]
// r0: bool = true;
function main(hello: [char; 5]) -> bool {
let hello2: string = "hello";
return hello == hello2;
}