test: Add a simple test for dangling pointers

This commit is contained in:
Patrick Walton 2012-03-24 18:59:11 -07:00
parent 7c27ec72d1
commit 8bef2716fe

View File

@ -0,0 +1,9 @@
// error-pattern: mismatched types
fn f(x : &a.int) -> &a.int {
ret &3;
}
fn main() {
}