Skip to content

Commit a653207

Browse files
committed
struct-function: added pointer -> value test
1 parent d927fe4 commit a653207

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functions/struct_functions/struct_by_value.c2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ fn Foo Bar.getF(Bar b) {
2525
return b.f;
2626
}
2727

28+
fn Foo test2(Bar* b) {
29+
return b.getF();
30+
}
31+
2832
fn i32 test1() {
2933
Bar b.init(20);
3034
return b.getF().getA();

0 commit comments

Comments
 (0)