zig/test/behavior/bugs/2578.zig
2021-06-21 17:03:03 -07:00

15 lines
161 B
Zig

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