2011-09-21 12:56:28 -05:00
|
|
|
// error-pattern:fail
|
|
|
|
|
2012-06-29 18:26:56 -05:00
|
|
|
fn f() -> ~[int] { fail; }
|
2011-09-21 12:56:28 -05:00
|
|
|
|
|
|
|
// Voodoo. In unwind-alt we had to do this to trigger the bug. Might
|
|
|
|
// have been to do with memory allocation patterns.
|
|
|
|
fn prime() {
|
|
|
|
@0;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn partial() {
|
2012-06-29 18:26:56 -05:00
|
|
|
let x = ~[~[0], f(), ~[0]];
|
2011-09-21 12:56:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
prime();
|
|
|
|
partial();
|
|
|
|
}
|