summaryrefslogtreecommitdiffhomepage
path: root/test/t/codegen.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/codegen.rb')
-rw-r--r--test/t/codegen.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/t/codegen.rb b/test/t/codegen.rb
index 528f58d9e..709902741 100644
--- a/test/t/codegen.rb
+++ b/test/t/codegen.rb
@@ -81,3 +81,13 @@ assert('next in normal loop with 127 arguments') do
end
end
end
+
+assert('negate literal register alignment') do
+ a = *case
+ when 0
+ -0.0
+ 2
+ end
+
+ assert_equal [2], a
+end