diff --git a/bootstraptest/test_attr.rb b/bootstraptest/test_attr.rb new file mode 100644 index 0000000000..c70e2c21a6 --- /dev/null +++ b/bootstraptest/test_attr.rb @@ -0,0 +1,10 @@ +assert_equal %{ok}, %{ + class A + attr :m + end + begin + A.new.m(3) + rescue ArgumentError => e + print "ok" + end +}, '[ruby-core:15120]'