diff options
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_literal.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstraptest/test_literal.rb b/bootstraptest/test_literal.rb index 5a9497c642..b95a2f2d0a 100644 --- a/bootstraptest/test_literal.rb +++ b/bootstraptest/test_literal.rb @@ -224,3 +224,8 @@ assert_equal 'ok', %q{ # long hash literal (optimized) eval "a = {#{(1..10_000).map{|n| "#{n} => #{n}"}.join(', ')}}" :ok } + +assert_equal 'ok', %q{ + [print(:ok), exit] # void literal with side-effect + :dummy +} |