mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ast.c: allocator of Node
* ast.c (Init_ast): undefine allocator of Node, as a method call on an uninitialized Node causes segfault. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64712906b0
commit
002f6ea856
2 changed files with 5 additions and 2 deletions
|
@ -129,6 +129,10 @@ class TestAst < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_allocate
|
||||
assert_raise(TypeError) {RubyVM::AST::Node.allocate}
|
||||
end
|
||||
|
||||
def test_column_with_long_heredoc_identifier
|
||||
term = "A"*257
|
||||
ast = RubyVM::AST.parse("<<-#{term}\n""ddddddd\n#{term}\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue