summaryrefslogtreecommitdiffhomepage
path: root/test/t/codegen.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-11-25 09:23:47 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-11-25 09:23:47 +0900
commit0b4017fd6918005475ace8f46d5279e18ef49eb6 (patch)
tree1697f3afde842fd206bb1a1d15fdcbde45029bff /test/t/codegen.rb
parentd77b25410880f0c79bd215c406ec44a9dac07769 (diff)
parent71641bbf732ab8cbadf8a07e20b2a939b0e3b82b (diff)
downloadmruby-0b4017fd6918005475ace8f46d5279e18ef49eb6.tar.gz
mruby-0b4017fd6918005475ace8f46d5279e18ef49eb6.zip
resolve conflict; ref #3286
Diffstat (limited to 'test/t/codegen.rb')
-rw-r--r--test/t/codegen.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/t/codegen.rb b/test/t/codegen.rb
index f910d37fb..cb2e75f93 100644
--- a/test/t/codegen.rb
+++ b/test/t/codegen.rb
@@ -9,3 +9,7 @@ assert('peephole optimization does not eliminate move whose result is reused') d
method(&a &&= 0)
end
end
+
+assert('empty condition in ternary expression parses correctly') do
+ assert_equal(() ? 1 : 2, 2)
+end