mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
17 lines
254 B
Zig
17 lines
254 B
Zig
const builtin = @import("builtin");
|
|
const A = struct {
|
|
b: B,
|
|
};
|
|
|
|
const B = *const fn (A) void;
|
|
|
|
test "allow these dependencies" {
|
|
var a: A = undefined;
|
|
var b: B = undefined;
|
|
_ = .{ &a, &b };
|
|
if (false) {
|
|
a;
|
|
b;
|
|
}
|
|
}
|