mirror of
https://github.com/ziglang/zig.git
synced 2025-12-12 01:03:13 +00:00
* pass more x64 behavior tests * return with a TODO error when lowering a decl with no runtime bits * insert some debug logs for tracing recursive descent down the type-value tree when lowering types * print `Decl`'s name when print debugging `decl_ref` value
17 lines
301 B
Zig
17 lines
301 B
Zig
const builtin = @import("builtin");
|
|
const A = struct {
|
|
b: B,
|
|
};
|
|
|
|
const B = *const fn (A) void;
|
|
|
|
test "allow these dependencies" {
|
|
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
|
|
var a: A = undefined;
|
|
var b: B = undefined;
|
|
if (false) {
|
|
a;
|
|
b;
|
|
}
|
|
}
|