aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/basic.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-17 20:45:55 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-01-17 20:45:55 -0700
commit84c2c47fae82e913286a2306d8947252ae3a42f7 (patch)
treea57dc1f9a211f3852496988ae1e09a222e9d6f29 /test/behavior/basic.zig
parent2600978a9ddc295c347fd6ffe7c6ba20931b956e (diff)
downloadzig-84c2c47fae82e913286a2306d8947252ae3a42f7.tar.gz
zig-84c2c47fae82e913286a2306d8947252ae3a42f7.zip
Sema: implement else capture value
The ZIR instructions `switch_capture_else` and `switch_capture_ref` are removed because they are not needed. Instead, the prong index is set to max int for the special prong. Else prong with error sets is not handled yet. Adds a new behavior test because there was not a prior on to cover only the capture value of else on a switch.
Diffstat (limited to 'test/behavior/basic.zig')
0 files changed, 0 insertions, 0 deletions