mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
20 lines
658 B
Zig
20 lines
658 B
Zig
const expect = @import("std").testing.expect;
|
|
const builtin = @import("builtin");
|
|
|
|
usingnamespace @import("foo.zig");
|
|
usingnamespace @import("bar.zig");
|
|
|
|
test "no clobbering happened" {
|
|
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
|
|
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
|
|
|
|
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isMIPS()) {
|
|
// https://github.com/ziglang/zig/issues/16846
|
|
return error.SkipZigTest;
|
|
}
|
|
|
|
@This().foo_function();
|
|
@This().bar_function();
|
|
try expect(@This().saw_foo_function);
|
|
try expect(@This().saw_bar_function);
|
|
}
|