aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/vector.zig
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2023-03-01 21:44:11 +0100
committerVeikka Tuominen <git@vexu.eu>2023-03-08 16:35:53 +0200
commitecc0108cea97772b6e921b36d8fdc8f90d5fc6cb (patch)
tree8b31f57cd8887de57430eb44d2c12f57fe5dd25c /test/behavior/vector.zig
parentfea14c78d1374af909a2f11e37fe057777f3985d (diff)
downloadzig-ecc0108cea97772b6e921b36d8fdc8f90d5fc6cb.tar.gz
zig-ecc0108cea97772b6e921b36d8fdc8f90d5fc6cb.zip
astgen: fill result location with `void` value if no other value
With this change, `break` and `break :blk` will fill the result location with `.void_value`, ensuring that the value will be type checked. The same will happen for a for loop that contains no `break`s in it's body. Closes https://github.com/ziglang/zig/issues/14686.
Diffstat (limited to 'test/behavior/vector.zig')
0 files changed, 0 insertions, 0 deletions