aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/usingnamespace/import_segregation.zig
blob: a509189be3e4eb77b42217ae06e2b29de7bd0f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
const expect = @import("std").testing.expect;

usingnamespace @import("foo.zig");
usingnamespace @import("bar.zig");

test "no clobbering happened" {
    @This().foo_function();
    @This().bar_function();
    try expect(@This().saw_foo_function);
    try expect(@This().saw_bar_function);
}