## # Codegen tests assert('peephole optimization does not eliminate move whose result is reused') do assert_raise LocalJumpError do def method yield end method(&a &&= 0) end end assert('empty condition in ternary expression parses correctly') do assert_equal(() ? 1 : 2, 2) end assert('method call with exactly 127 arguments') do def args_to_ary(*args) args end assert_equal [0]*127, args_to_ary( 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ) end assert('nested empty heredoc') do _, a = nil, <