zig/test/behavior/bugs/529.zig

15 lines
231 B
Zig
Raw Normal View History

const A = extern struct {
field: c_int,
};
extern fn issue529(?*A) void;
comptime {
_ = @import("529_other_file_2.zig");
}
test "issue 529 fixed" {
@import("529_other_file.zig").issue529(null);
issue529(null);
}