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
|
|
|
*/
|
|
|
|
|
2021-02-08 21:44:30 +03:00
|
|
|
circuit Bar {
|
|
|
|
b2: u32
|
|
|
|
|
2021-05-05 11:37:51 +03:00
|
|
|
function add_five(z: u32) -> u32 {
|
|
|
|
return z + 5u32;
|
2021-02-08 21:44:30 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-12 20:47:03 +03:00
|
|
|
function main(y: bool) -> bool {
|
2021-03-18 22:19:07 +03:00
|
|
|
const Bar = 66u32;
|
2021-05-05 11:37:51 +03:00
|
|
|
const k1 = Bar { b2: 30u32 };
|
2021-03-18 22:19:07 +03:00
|
|
|
const k2 = Bar::add_five(55u32);
|
2021-05-12 20:47:03 +03:00
|
|
|
|
|
|
|
return y == true;
|
2021-05-05 11:37:51 +03:00
|
|
|
}
|