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