t/struct.t: add a function declaration in struct