| ... | ... | @@ -1039,9 +1039,10 @@ pub const Builder = struct { |
| 1039 | 1039 | }; |
| 1040 | 1040 | |
| 1041 | 1041 | test "builder.findProgram compiles" { |
| 1042 | | var buf: [50000]u8 = undefined; |
| 1043 | | var fba = std.heap.FixedBufferAllocator.init(&buf); |
| 1044 | | const builder = try Builder.create(&fba.allocator, "zig", "zig-cache", "zig-cache"); |
| 1042 | var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); |
| 1043 | defer arena.deinit(); |
| 1044 | |
| 1045 | const builder = try Builder.create(&arena.allocator, "zig", "zig-cache", "zig-cache"); |
| 1045 | 1046 | defer builder.destroy(); |
| 1046 | 1047 | _ = builder.findProgram(&[_][]const u8{}, &[_][]const u8{}) catch null; |
| 1047 | 1048 | } |