test: Add a test case that ensures ret &EXPR works.

This commit is contained in:
Patrick Walton 2012-03-23 16:18:28 -07:00
parent cba007e6c8
commit cab4f1685b

View file

@ -0,0 +1,8 @@
fn f(x : &a.int) -> &a.int {
ret &*x;
}
fn main() {
log(error, #fmt("%d", *f(&3)));
}