diff options
| author | Christopher Aue <[email protected]> | 2017-08-22 15:17:12 +0200 |
|---|---|---|
| committer | Christopher Aue <[email protected]> | 2017-08-23 18:15:27 +0200 |
| commit | 1221f7676eda4e656f120a21fd0f354d242df457 (patch) | |
| tree | 700bc483bd422eaef7913e3f7e2c665e59799202 /test | |
| parent | c040c8d92bc940cd6f7b451c9f8968df5d21c945 (diff) | |
| download | mruby-1221f7676eda4e656f120a21fd0f354d242df457.tar.gz mruby-1221f7676eda4e656f120a21fd0f354d242df457.zip | |
Fixed register windows of OP_SENDs generated by NODE_{FOR,SYMBOLS}; ref #3783
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/codegen.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/t/codegen.rb b/test/t/codegen.rb index 106790507..afec94a69 100644 --- a/test/t/codegen.rb +++ b/test/t/codegen.rb @@ -75,6 +75,16 @@ assert('negate literal register alignment') do end assert('register window of calls (#3783)') do + # NODE_FOR + assert_nothing_raised do + for i in []; end + end + + # NODE_SYMBOLS + assert_nothing_raised do + %i(sym) + end + # NODE_SCALL assert_nothing_raised do Object.new&.__id__ |
