aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-03-12 15:01:43 -0800
committerAndrew Kelley <andrew@ziglang.org>2022-03-12 22:03:01 -0500
commit7ec2261dbf7a85f5c215f2dac22b80fca7de1e0f (patch)
treeb8faff85307df51c3a91cd6c46ec432ba9e175d0 /src/codegen/c.zig
parent804b82b6e82b938eaa736fc90442dd4fd552717e (diff)
downloadzig-7ec2261dbf7a85f5c215f2dac22b80fca7de1e0f.tar.gz
zig-7ec2261dbf7a85f5c215f2dac22b80fca7de1e0f.zip
stage2: add compiler test to ensure typed null doesn't coerce to any
In stage1, this behavior was allowed (by accident?) and also accidentally exercised by the behavior test changed in this commit. In discussion on Discord, Andrew decided this should not be allowed in stage2 since there is currently on real world reason to allow this strange edge case. I've added the compiler test to solidify that this behavior should NOT occur and updated the behavior test to the new valid semantics.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions