mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
525dcaecba
Also fix C warnings triggered by these tests.
13 lines
231 B
Zig
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);
|
|
}
|