mirror of
https://github.com/ziglang/zig.git
synced 2025-12-26 16:13:07 +00:00
We now resolve undefined symbols during incremental-compilation where we discard the current symbol if we detect we found an existing symbol which is not the one currently being updated. The symbol will always be discarded in favor of the existing symbol in such a case.
23 lines
666 B
Zig
23 lines
666 B
Zig
const A = extern struct {
|
|
field: c_int,
|
|
};
|
|
|
|
extern fn issue529(?*A) void;
|
|
|
|
comptime {
|
|
_ = @import("529_other_file_2.zig");
|
|
}
|
|
|
|
const builtin = @import("builtin");
|
|
|
|
test "issue 529 fixed" {
|
|
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
|
|
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
|
|
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
|
|
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
|
|
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
|
|
|
|
@import("529_other_file.zig").issue529(null);
|
|
issue529(null);
|
|
}
|