mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-29 01:25:18 +03:00
21 lines
281 B
Plaintext
21 lines
281 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: input/dummy.in
|
|
*/
|
|
|
|
circuit Foo {
|
|
f: u32;
|
|
|
|
function bar(self) -> u32 {
|
|
return self.f;
|
|
}
|
|
}
|
|
|
|
function main(y: bool) -> bool {
|
|
const a = Foo { f: 1u32 };
|
|
const b = a.bar();
|
|
|
|
return (b == 1u32) == y;
|
|
}
|