summaryrefslogtreecommitdiff
path: root/test/-ext-/test_bug-3662.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-07 04:33:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-07 04:33:33 +0000
commitfd0485acf7936e865903d643715433a7b861afbb (patch)
treeefb5eb5d1bb8b83e8daa7d726cbc1c19cf4d26f6 /test/-ext-/test_bug-3662.rb
parent93426cd6e883bd436b73c32a08cd14a29b10b7f4 (diff)
* vm_eval.c (vm_call0): fix for VM_METHOD_TYPE_NOTIMPLEMENTED.
[ruby-dev:41953] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/test_bug-3662.rb')
-rw-r--r--test/-ext-/test_bug-3662.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/-ext-/test_bug-3662.rb b/test/-ext-/test_bug-3662.rb
new file mode 100644
index 00000000000..73c0697241f
--- /dev/null
+++ b/test/-ext-/test_bug-3662.rb
@@ -0,0 +1,10 @@
+require '-test-/bug-3662/bug'
+
+class Test_BUG_3662 < Test::Unit::TestCase
+ def test_funcall_notimplement
+ bug3662 = '[ruby-dev:41953]'
+ assert_raise(NotImplementedError, bug3662) {
+ Bug.funcall(:notimplement)
+ }
+ end
+end