aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/duplicated_test_names.zig
blob: 52930ea31819c042a6e3077fc7fd0bacaed5bf92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const builtin = @import("builtin");

const Namespace = struct {
    test "thingy" {}
};

fn thingy(a: usize, b: usize) usize {
    return a + b;
}

comptime {
    _ = Namespace;
}

test "thingy" {}

test thingy {
    if (thingy(1, 2) != 3) unreachable;
}