diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-25 09:27:24 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-25 09:27:24 +0900 |
| commit | 30f12ba4bcfaf7dd4d0a02cb64c664fea804cf7d (patch) | |
| tree | 0ed6f168be786b68bb0b7713c706ca8be50d742c /test/t/codegen.rb | |
| parent | 9f7701e27a136b033cdc1b3fd05ee9898e1ea802 (diff) | |
| parent | 75b31d743813dd078c5b5c2ee5115b07b0c14f32 (diff) | |
| download | mruby-30f12ba4bcfaf7dd4d0a02cb64c664fea804cf7d.tar.gz mruby-30f12ba4bcfaf7dd4d0a02cb64c664fea804cf7d.zip | |
resolve conflict; ref #3283
Diffstat (limited to 'test/t/codegen.rb')
| -rw-r--r-- | test/t/codegen.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/t/codegen.rb b/test/t/codegen.rb index 7177053ae..7d6efdc98 100644 --- a/test/t/codegen.rb +++ b/test/t/codegen.rb @@ -31,3 +31,18 @@ assert('codegen absorbs arguments to redo and retry if they are the argument of end end 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 |
