Test for #1374
This commit is contained in:
parent
5ee89f3f2a
commit
274c9708f0
9
src/test/run-pass/cleanup-copy-mode.rs
Normal file
9
src/test/run-pass/cleanup-copy-mode.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// xfail-win32
|
||||
fn adder(+x: @int, +y: @int) -> int { ret *x + *y; }
|
||||
fn failer() -> @int { fail; }
|
||||
fn main() {
|
||||
assert(result::failure(task::try {||
|
||||
adder(@2, failer()); ()
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user