mirror of
https://github.com/ziglang/zig.git
synced 2026-01-06 21:43:25 +00:00
fix builder.findProgram test
This commit is contained in:
parent
2387f48d5c
commit
6226726571
@ -1039,9 +1039,10 @@ pub const Builder = struct {
|
||||
};
|
||||
|
||||
test "builder.findProgram compiles" {
|
||||
var buf: [50000]u8 = undefined;
|
||||
var fba = std.heap.FixedBufferAllocator.init(&buf);
|
||||
const builder = try Builder.create(&fba.allocator, "zig", "zig-cache", "zig-cache");
|
||||
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
|
||||
defer arena.deinit();
|
||||
|
||||
const builder = try Builder.create(&arena.allocator, "zig", "zig-cache", "zig-cache");
|
||||
defer builder.destroy();
|
||||
_ = builder.findProgram(&[_][]const u8{}, &[_][]const u8{}) catch null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user