0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

fix dereferencing a zero bit type

Before only u0 was special cased in handling a dereference;
now all zero bit types are handled the same way. Dereferencing
a pointer to a zero bit type always gives a comptime-known
result.

This previously had been failing on master branch but went unnoticed
because until 846f72b57c the CI server was mistakenly not actually
running the single-threaded tests with --single-threaded.

This fixes the standard library tests with --single-threaded
--release-fast.
This commit is contained in:
Andrew Kelley 2019-04-05 20:18:26 -04:00
commit 83390bdfdd
No known key found for this signature in database
GPG key ID: 7C5F548F728501A9