| ... | @@ -6454,8 +6454,8 @@ pub fn populateTestFunctions( | ... | @@ -6454,8 +6454,8 @@ pub fn populateTestFunctions( |
| 6454 | | 6454 | |
| 6455 | for (test_fn_vals, mod.test_functions.keys()) |*test_fn_val, test_decl_index| { | 6455 | for (test_fn_vals, mod.test_functions.keys()) |*test_fn_val, test_decl_index| { |
| 6456 | const test_decl = mod.declPtr(test_decl_index); | 6456 | const test_decl = mod.declPtr(test_decl_index); |
| | 6457 | const test_decl_name = mem.span(test_decl.name); |
| 6457 | const test_name_decl_index = n: { | 6458 | const test_name_decl_index = n: { |
| 6458 | const test_decl_name = mem.span(test_decl.name); | | |
| 6459 | const test_name_decl_ty = try mod.arrayType(.{ | 6459 | const test_name_decl_ty = try mod.arrayType(.{ |
| 6460 | .len = test_decl_name.len, | 6460 | .len = test_decl_name.len, |
| 6461 | .child = .u8_type, | 6461 | .child = .u8_type, |
| ... | @@ -6478,10 +6478,17 @@ pub fn populateTestFunctions( | ... | @@ -6478,10 +6478,17 @@ pub fn populateTestFunctions( |
| 6478 | try mod.intern(.{ .ptr = .{ | 6478 | try mod.intern(.{ .ptr = .{ |
| 6479 | .ty = .slice_const_u8_type, | 6479 | .ty = .slice_const_u8_type, |
| 6480 | .addr = .{ .decl = test_name_decl_index }, | 6480 | .addr = .{ .decl = test_name_decl_index }, |
| | 6481 | .len = try mod.intern(.{ .int = .{ |
| | 6482 | .ty = .usize_type, |
| | 6483 | .storage = .{ .u64 = test_decl_name.len }, |
| | 6484 | } }), |
| 6481 | } }), | 6485 | } }), |
| 6482 | // func | 6486 | // func |
| 6483 | try mod.intern(.{ .ptr = .{ | 6487 | try mod.intern(.{ .ptr = .{ |
| 6484 | .ty = test_decl.ty.toIntern(), | 6488 | .ty = try mod.intern(.{ .ptr_type = .{ |
| | 6489 | .elem_type = test_decl.ty.toIntern(), |
| | 6490 | .is_const = true, |
| | 6491 | } }), |
| 6485 | .addr = .{ .decl = test_decl_index }, | 6492 | .addr = .{ .decl = test_decl_index }, |
| 6486 | } }), | 6493 | } }), |
| 6487 | // async_frame_size | 6494 | // async_frame_size |