mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-25 02:22:44 +03:00
21 lines
287 B
Plaintext
21 lines
287 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: input/dummy.in
|
|
*/
|
|
|
|
circuit Foo {
|
|
foo: u32;
|
|
|
|
function bar() -> u32 {
|
|
return 1u32;
|
|
}
|
|
}
|
|
|
|
function main(y: bool) -> bool {
|
|
const a = Foo { foo: 1 };
|
|
const b = a.foo + Foo::bar();
|
|
|
|
return (b == 2u32) == y;
|
|
}
|