zig/test/behavior/bugs/529.zig
Andrew Kelley f27d3409bd behavior tests: disable failing stage1 test
My previous commit added a new behavior test that passes for stage2 but
I forgot to check whether it passes for stage1. Since it does not, it
has to be disabled.

Additionally, this commit organizes behavior tests; there is no longer a
section of tests only passing for stage1. Instead, tests are disabled on
an individual basis. There is an except for the file which has global
assembly in it.
2022-03-23 14:06:07 -07:00

17 lines
317 B
Zig

const A = extern struct {
field: c_int,
};
extern fn issue529(?*A) void;
comptime {
_ = @import("529_other_file_2.zig");
}
test "issue 529 fixed" {
if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO
@import("529_other_file.zig").issue529(null);
issue529(null);
}