authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-08-15 08:38:08+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-08-15 08:38:08+02:00
logc9db8878006fe53eb438bc6a6f2d2416cc5ef412
tree57be4cf970b21ddb3711dd2b852f9db06baf6334
parentb8203fac1b272d4f13f668797cf356d995b7967f

builtin: init test_functions to empty slice to avoid coercing to undefined


1 files changed, 1 insertions(+), 1 deletions(-)

src/Builtin.zig+1-1
...@@ -218,7 +218,7 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void {...@@ -218,7 +218,7 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void {
218218
219 if (opts.is_test) {219 if (opts.is_test) {
220 try buffer.appendSlice(220 try buffer.appendSlice(
221 \\pub var test_functions: []const std.builtin.TestFn = undefined; // overwritten later221 \\pub var test_functions: []const std.builtin.TestFn = &.{}; // overwritten later
222 \\222 \\
223 );223 );
224 }224 }