mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 04:24:33 +01:00
builtin: init test_functions to empty slice to avoid coercing to undefined
This commit is contained in:
parent
b8203fac1b
commit
c9db887800
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void {
|
|||
|
||||
if (opts.is_test) {
|
||||
try buffer.appendSlice(
|
||||
\\pub var test_functions: []const std.builtin.TestFn = undefined; // overwritten later
|
||||
\\pub var test_functions: []const std.builtin.TestFn = &.{}; // overwritten later
|
||||
\\
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue