diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-04-09 15:26:41 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-09 15:36:45 -0700 |
| commit | b42c6d07dc4b1aeb66901bd29b14ab34f9ef1183 (patch) | |
| tree | acf54093208bf0baa1c48ef1ee7aafb91f933ff7 /src/test | |
| parent | a1d59704ed12282e7f00c137e03538bc397fc8e3 (diff) | |
| download | rust-b42c6d07dc4b1aeb66901bd29b14ab34f9ef1183.tar.gz rust-b42c6d07dc4b1aeb66901bd29b14ab34f9ef1183.zip | |
rt: Don't limit the amount of stack available during unwinding. Closes #2144
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-fail/issue-2144.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/run-fail/issue-2144.rs b/src/test/run-fail/issue-2144.rs new file mode 100644 index 00000000000..446c488ad1a --- /dev/null +++ b/src/test/run-fail/issue-2144.rs @@ -0,0 +1,9 @@ +// error-pattern:ran out of stack + +// Don't leak when the landing pads need to request more stack +// than is allowed during normal execution + +fn useBlock(f: fn~() -> uint) { useBlock({|| 22u }) } +fn main() { + useBlock({|| 22u }); +} |
