mirror of
https://github.com/ziglang/zig.git
synced 2026-01-26 09:15:24 +00:00
Fixes #13970. This fix makes test runners resolve package paths relative to the directory the test runner is in. This means it is not possible to import a file from outside the file tree root at the directory containing the test runner.
9 lines
181 B
Zig
9 lines
181 B
Zig
const std = @import("std");
|
|
const package = @import("package.zig");
|
|
const root = @import("root");
|
|
const builtin = @import("builtin");
|
|
|
|
pub fn main() !void {
|
|
_ = package.decl;
|
|
}
|