mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 03:25:01 +00:00
Singular tests (such as in the bug ones) are moved to top level with exclusions for non-passing backends. The big behavior tests such as array_llvm and slice are moved to the inner scope with the C backend disabled. They all pass for the wasm backend now
17 lines
350 B
Zig
17 lines
350 B
Zig
const builtin = @import("builtin");
|
|
|
|
const A = struct {
|
|
B: type,
|
|
};
|
|
|
|
fn getA() A {
|
|
return A{ .B = u8 };
|
|
}
|
|
|
|
test "bug 1025" {
|
|
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
|
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
|
|
const a = getA();
|
|
try @import("std").testing.expect(a.B == u8);
|
|
}
|