diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_continuation.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_continuation.rb b/test/ruby/test_continuation.rb index 8af13363dc..729da88e60 100644 --- a/test/ruby/test_continuation.rb +++ b/test/ruby/test_continuation.rb @@ -40,6 +40,13 @@ class TestContinuation < Test::Unit::TestCase assert_raise(LocalJumpError){ callcc } + assert_raise(RuntimeError){ + c = nil + Fiber.new do + callcc {|c2| c = c2 } + end.yield + c.call + } end end |