2021-05-05 11:37:51 +03:00
|
|
|
/*
|
|
|
|
namespace: Compile
|
|
|
|
expectation: Pass
|
2021-05-12 20:47:03 +03:00
|
|
|
input_file: input/dummy.in
|
2021-05-05 11:37:51 +03:00
|
|
|
*/
|
|
|
|
|
2020-09-08 07:56:39 +03:00
|
|
|
circuit Foo {
|
2020-12-01 23:37:44 +03:00
|
|
|
function qux() {}
|
2020-09-08 07:56:39 +03:00
|
|
|
|
2020-12-01 23:37:44 +03:00
|
|
|
function bar() {
|
2020-09-08 07:56:39 +03:00
|
|
|
Self::qux();
|
|
|
|
}
|
|
|
|
|
2020-12-01 23:37:44 +03:00
|
|
|
function baz() {
|
2020-09-08 07:56:39 +03:00
|
|
|
Self::bar();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-12 20:47:03 +03:00
|
|
|
function main(y: bool) -> bool {
|
2020-09-08 07:56:39 +03:00
|
|
|
Foo::baz();
|
2021-05-12 20:47:03 +03:00
|
|
|
|
|
|
|
return y == true;
|
2021-05-05 11:37:51 +03:00
|
|
|
}
|