aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs/1500.zig
blob: 6a41617d2bd320b4a37ec5d8f7a92ca1908e030c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
    }
}