aboutsummaryrefslogtreecommitdiff
path: root/test/behavior.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-03-05 12:12:45 -0800
committerVeikka Tuominen <git@vexu.eu>2022-03-06 10:38:53 +0200
commitbf972e44d5d0ce704cae99957d565c55ea16335d (patch)
treec709555e4de2eea52d52a6927b0bf0f3c3da6a14 /test/behavior.zig
parentcd43f323d28e66d11273425cc6debcce735c33e2 (diff)
downloadzig-bf972e44d5d0ce704cae99957d565c55ea16335d.tar.gz
zig-bf972e44d5d0ce704cae99957d565c55ea16335d.zip
stage2: coerce [*:0]u8 to other valid pointer types
This makes the following work properly (as it does in stage1, too): var zero_ptr: [*:0]const u8 = undefined; var no_zero_ptr: [*]const u8 = zero_ptr; Prior to this this would fail with an "expected type" error since coercion failed.
Diffstat (limited to 'test/behavior.zig')
0 files changed, 0 insertions, 0 deletions