Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
run-pass
/
morestack5.rs
blob: 3431d6b396312671d0bb58325a14c5bf4207a9e3 [
file
] [
log
] [
blame
]
// This test will call __morestack with various minimum stack sizes
extern
mod
std
;
fn
getbig
(&&
i
:
int
)
{
if
i
!=
0
{
getbig
(
i
-
1
);
}
}
fn
main
()
{
let
mut
sz
=
400u
;
while
sz
<
500u
{
task
::
try
(||
getbig
(
200
)
);
sz
+=
1u
;
}
}