test: Add a test case for the "self" region in enums

This commit is contained in:
Patrick Walton 2012-03-14 15:41:54 -07:00
parent 1ed768bc3b
commit 83ed4f4bc4

View File

@ -0,0 +1,16 @@
enum int_wrapper {
int_wrapper_ctor(&int)
}
fn main() {
unsafe {
let x = 3;
let y = int_wrapper_ctor(&x);
let z : ∫
alt y {
int_wrapper_ctor(zz) { z = zz; }
}
log(debug, *z);
}
}