diff options
| author | Bouke van der Bijl <[email protected]> | 2016-11-14 15:07:07 -0500 |
|---|---|---|
| committer | Bouke van der Bijl <[email protected]> | 2016-11-24 10:18:48 -0500 |
| commit | 12539825773ddb13fac38091d13341b816ac23fa (patch) | |
| tree | ae50c1e33d6b9eaaecd916f61dbf463a8a3f77a4 /test/t/codegen.rb | |
| parent | a630c4f413f6af764e68210430e8b61a435d38d7 (diff) | |
| download | mruby-12539825773ddb13fac38091d13341b816ac23fa.tar.gz mruby-12539825773ddb13fac38091d13341b816ac23fa.zip | |
Fix codegen issue causing misaligned register
Reported by https://hackerone.com/haquaman
Diffstat (limited to 'test/t/codegen.rb')
| -rw-r--r-- | test/t/codegen.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/t/codegen.rb b/test/t/codegen.rb new file mode 100644 index 000000000..89ad94bae --- /dev/null +++ b/test/t/codegen.rb @@ -0,0 +1,20 @@ +## +# Codegen tests + +assert('codegen absorbs arguments to redo and retry if they are the argument of a call') do + assert_nothing_raised do + a=*"1", case nil + when 1 + redo | + 1 + end + end + + assert_nothing_raised do + a=*"1", case nil + when 1 + retry | + 1 + end + end +end |
