2012-01-11 17:10:36 -06:00
|
|
|
// xfail-win32
|
2012-01-11 14:37:09 -06:00
|
|
|
// error-pattern:ran out of stack
|
|
|
|
|
2012-07-23 14:53:18 -05:00
|
|
|
// Test that the task fails after hitting the recursion limit, but
|
2012-01-11 14:37:09 -06:00
|
|
|
// that it doesn't bring down the whole proc
|
|
|
|
|
|
|
|
fn main() {
|
2012-07-23 14:53:18 -05:00
|
|
|
do task::spawn_unlinked {
|
2012-01-11 14:37:09 -06:00
|
|
|
fn f() { f() };
|
|
|
|
f();
|
|
|
|
};
|
2012-07-23 14:53:18 -05:00
|
|
|
}
|