diff options
Diffstat (limited to 'test/t/codegen.rb')
| -rw-r--r-- | test/t/codegen.rb | 4 |
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 |
