mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 11:12:48 +03:00
21 lines
357 B
Plaintext
21 lines
357 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' : f.character;
|
|
return character;
|
|
} |