mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
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