mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 10:03:21 +00:00
This moves the single bugs behavior tests to the outer branch and disables the test cases for all non-passing backends. For the larger files, we move it up a single branch and disable it for the c backend. All test cases that do pass for the c backend however, are enabled.
21 lines
437 B
Zig
21 lines
437 B
Zig
const builtin = @import("builtin");
|
|
|
|
const Foo = struct {
|
|
y: u8,
|
|
};
|
|
|
|
var foo: Foo = undefined;
|
|
const t = &foo;
|
|
|
|
fn bar(pointer: ?*anyopaque) void {
|
|
_ = pointer;
|
|
}
|
|
|
|
test "fixed" {
|
|
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
|
|
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
|
|
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
|
|
|
|
bar(t);
|
|
}
|