1const std = @import("std");
2const builtin = @import("builtin");
3const expect = std.testing.expect;
4const expectEqual = std.testing.expectEqual;
5const a_namespace = @import("import/a_namespace.zig");
6
7test "call fn via namespace lookup" {
8 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
9
10 try expect(@as(i32, 1234) == a_namespace.foo());
11}
12
13test "importing the same thing gives the same import" {
14 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
15
16 try expect(@import("std") == @import("std"));
17}
18
19test "import empty file" {
20 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
21
22 _ = @import("import/empty.zig");
23}