mirror of
https://github.com/ziglang/zig.git
synced 2025-12-28 17:13:19 +00:00
15 lines
161 B
Zig
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);
|
|
}
|