zig/test/behavior/bugs/2692.zig
Jacob Young 525dcaecba behavior: enable stage2_c tests that are currently passing
Also fix C warnings triggered by these tests.
2022-10-25 05:11:28 -04:00

13 lines
231 B
Zig

const builtin = @import("builtin");
fn foo(a: []u8) void {
_ = a;
}
test "address of 0 length array" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
var pt: [0]u8 = undefined;
foo(&pt);
}