mirror of
https://github.com/ziglang/zig.git
synced 2024-12-04 02:48:50 +00:00
4307436b99
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.
13 lines
143 B
Zig
13 lines
143 B
Zig
const Foo = struct {
|
|
y: u8,
|
|
};
|
|
|
|
var foo: Foo = undefined;
|
|
const t = &foo;
|
|
|
|
fn bar(pointer: ?*c_void) void {}
|
|
|
|
test "fixed" {
|
|
bar(t);
|
|
}
|