1use secgate::TwzError;
2
3#[repr(C)]
4#[derive(Debug, Clone, Copy)]
5pub struct Foo {
6 pub x: u32,
7}
8
9#[secgate::gatecall]
10fn foo(f: Foo) -> Result<u32, TwzError> {}
11
12pub fn bar(f: Foo) -> Foo {
13 let y = foo(f).unwrap();
14 Foo { x: y }
15}