mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 11:45:00 +03:00
21 lines
349 B
Plaintext
21 lines
349 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/ascii.in
|
|
- inputs/escaped_unicode.in
|
|
- inputs/escaped.in
|
|
- inputs/hex.in
|
|
- inputs/unicode.in
|
|
*/
|
|
|
|
circuit Foo {
|
|
character: char;
|
|
}
|
|
|
|
function main(character: char) -> char {
|
|
let f = Foo { character };
|
|
|
|
let character = f.character == 'a' ? 'a' : 'Z';
|
|
return character;
|
|
} |