commit 5ce9c878cf83b5d8ab0407b798fe4aa35768c498 (tree)
parent d1e46006758a82f039d23ea26030e3b685a5fa86
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Thu, 26 May 2022 16:55:31 +0200
apply Vexu's suggestion to use failing_allocator for now
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/test/cases/compile_errors/dereference_anyopaque.zig b/test/cases/compile_errors/dereference_anyopaque.zig
@@ -36,13 +36,12 @@ fn parseFree(comptime T: type, value: T, allocator: std.mem.Allocator) void {
}
pub export fn entry() void {
- const allocator = std.testing.allocator_instance.allocator();
+ const allocator = std.testing.failing_allocator;
_ = parse(std.StringArrayHashMap(bool), allocator) catch return;
}
// error
// backend=llvm
-// target=x86_64-linux,aarch64-linux,arm-linux,x86_64-macos,aarch64-macos
//
// :11:22: error: comparison of 'void' with null
// :25:51: error: unable to resolve comptime value