aboutsummaryrefslogtreecommitdiff
path: root/test/cli.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-09-23 15:02:38 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-09-23 15:02:38 -0400
commit53ae03ebe9e0aa56bca1c9219a47d124b0435258 (patch)
tree2f69fc4aeb6bdbc9567338b033337c4556f5c0c0 /test/cli.zig
parent29b82d20a4534fc7e3393c21ad637d44d20449a2 (diff)
downloadzig-53ae03ebe9e0aa56bca1c9219a47d124b0435258.tar.gz
zig-53ae03ebe9e0aa56bca1c9219a47d124b0435258.zip
make type_allowed_in_extern more robust
Previously if the type parameter was a pointer, it would assert that the size of the type was resolved. It used to be that the size of pointers was always resolved, however with lazy values, pointers gained the possibility of not having their size resolved. Now, type_allowed_in_extern triggers the resolution of whether a pointer is zero bits, and returns a possible error if the resolution fails. This fixes a compiler assertion when building the [zootdeck project](https://github.com/donpdonp/zootdeck). I do not have a test case reduction for the issue.
Diffstat (limited to 'test/cli.zig')
0 files changed, 0 insertions, 0 deletions