2012-01-11 15:10:36 -08:00
|
|
|
// xfail-win32
|
2012-01-11 12:37:09 -08:00
|
|
|
// error-pattern:ran out of stack
|
|
|
|
|
|
|
|
// Test that the task fails after hiting the recursion limit, but
|
|
|
|
// that it doesn't bring down the whole proc
|
|
|
|
|
|
|
|
fn main() {
|
2012-04-05 14:09:32 -07:00
|
|
|
let builder = task::builder();
|
2012-02-18 16:34:42 -08:00
|
|
|
task::unsupervise(builder);
|
2012-06-30 16:19:07 -07:00
|
|
|
do task::run(builder) || {
|
2012-01-11 12:37:09 -08:00
|
|
|
fn f() { f() };
|
|
|
|
f();
|
|
|
|
};
|
|
|
|
}
|