summaryrefslogtreecommitdiffhomepage
path: root/test/t/codegen.rb
blob: 89ad94bae3d166b8ebcdc84fbf9219007a578995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
##
# Codegen tests

assert('codegen absorbs arguments to redo and retry if they are the argument of a call') do
  assert_nothing_raised do
    a=*"1", case nil
    when 1
      redo |
      1
    end
  end

  assert_nothing_raised do
    a=*"1", case nil
    when 1
      retry |
      1
    end
  end
end