zig/test/behavior/usingnamespace/import_segregation.zig
Andrew Kelley cca57042df std: fix regressions from this branch
Also move some usingnamespace test cases from compare_output to
behavior.
2021-09-01 17:54:07 -07:00

12 lines
292 B
Zig

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);
}