2021-05-14 22:34:39 +03:00
|
|
|
/*
|
|
|
|
namespace: Compile
|
2021-05-18 19:04:58 +03:00
|
|
|
expectation: Pass
|
2021-05-14 22:34:39 +03:00
|
|
|
input_file:
|
|
|
|
- inputs/ascii.in
|
2021-06-10 01:54:05 +03:00
|
|
|
- inputs/escaped_unicode1.in
|
|
|
|
- inputs/escaped_unicode2.in
|
|
|
|
- inputs/escaped_unicode3.in
|
|
|
|
- inputs/escaped_unicode4.in
|
|
|
|
- inputs/escaped_unicode5.in
|
|
|
|
- inputs/escaped_unicode6.in
|
2021-05-14 22:34:39 +03:00
|
|
|
- inputs/escaped.in
|
2021-06-10 01:54:05 +03:00
|
|
|
- inputs/hex1.in
|
|
|
|
- inputs/hex2.in
|
|
|
|
- inputs/unicode1.in
|
|
|
|
- inputs/unicode2.in
|
|
|
|
- inputs/unicode3.in
|
|
|
|
- inputs/unicode4.in
|
|
|
|
- inputs/unicode5.in
|
2021-05-14 22:34:39 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
circuit Foo {
|
|
|
|
character: char;
|
|
|
|
}
|
|
|
|
|
|
|
|
function main(character: char) -> char {
|
|
|
|
let f = Foo { character };
|
2021-05-18 19:04:58 +03:00
|
|
|
|
2021-05-19 23:48:34 +03:00
|
|
|
let character = f.character == 'a' ? 'a' : f.character;
|
2021-05-18 19:04:58 +03:00
|
|
|
return character;
|
2021-05-14 22:34:39 +03:00
|
|
|
}
|