mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
964427f82c
Reported by https://hackerone.com/dkasak
12 lines
201 B
Ruby
12 lines
201 B
Ruby
##
|
|
# 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
|