aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/switch.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-03-07 21:10:31 +0100
committerAndrew Kelley <andrew@ziglang.org>2022-03-09 13:53:10 -0700
commit557f396f613a416e81116f85c080af8b976fe8cf (patch)
tree8d3c5564d6bbefde4cd04f2dc670bc726ec0ef95 /test/behavior/switch.zig
parentb936fe0a5855872814c9f70f958363f64896217b (diff)
downloadzig-557f396f613a416e81116f85c080af8b976fe8cf.tar.gz
zig-557f396f613a416e81116f85c080af8b976fe8cf.zip
wasm: Improve switch implementation
- Implement switching over booleans and pointers. - Fix sparse-detection where the lowest value was never truly set as it started at a non-zero number and the case was > 50. - Fix indexing the jump table by ensuring it starts indexing from 0.
Diffstat (limited to 'test/behavior/switch.zig')
0 files changed, 0 insertions, 0 deletions