zig/test/behavior/bugs/2578.zig
Isaac Freund 9f9f215305
stage1, stage2: rename c_void to anyopaque (#10316)
zig fmt now replaces c_void with anyopaque to make updating
code easy.
2021-12-19 00:24:45 -05:00

15 lines
164 B
Zig

const Foo = struct {
y: u8,
};
var foo: Foo = undefined;
const t = &foo;
fn bar(pointer: ?*anyopaque) void {
_ = pointer;
}
test "fixed" {
bar(t);
}