Skip to content

Commit cab4f16

Browse files
committed
test: Add a test case that ensures ret &EXPR works.
1 parent cba007e commit cab4f16

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
fn f(x : &a.int) -> &a.int {
2+
ret &*x;
3+
}
4+
5+
fn main() {
6+
log(error, #fmt("%d", *f(&3)));
7+
}
8+

0 commit comments

Comments
 (0)