about summary refs log tree commit diff
path: root/src/test/run-fail
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-04-09 15:26:41 -0700
committerBrian Anderson <banderson@mozilla.com>2012-04-09 15:36:45 -0700
commitb42c6d07dc4b1aeb66901bd29b14ab34f9ef1183 (patch)
treeacf54093208bf0baa1c48ef1ee7aafb91f933ff7 /src/test/run-fail
parenta1d59704ed12282e7f00c137e03538bc397fc8e3 (diff)
downloadrust-b42c6d07dc4b1aeb66901bd29b14ab34f9ef1183.tar.gz
rust-b42c6d07dc4b1aeb66901bd29b14ab34f9ef1183.zip
rt: Don't limit the amount of stack available during unwinding. Closes #2144
Diffstat (limited to 'src/test/run-fail')
-rw-r--r--src/test/run-fail/issue-2144.rs9
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 });
+}