Skip to content

Commit aa50d76

Browse files
committed
Fix ext type codegen test to actually test codegen.
1 parent 6ac2158 commit aa50d76

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎test/codegen/external_type.art‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ fn gen_test() -> test {
77
bitcast[test](a)
88
}
99

10+
#[export]
1011
fn consume_test(a : test) -> i32 {
1112
bitcast[i32](a)
1213
}
1314

1415
#[export]
1516
fn main() -> i32 {
16-
let x = consume_test(gen_test());
17-
x - 42
17+
let x = gen_test();
18+
let y = consume_test(x);
19+
y - 42
1820
}

0 commit comments

Comments
 (0)