From b352595aa2ede0c2fd53094da4123aac031335ec Mon Sep 17 00:00:00 2001 From: Carl Ã…stholm Date: Wed, 6 Nov 2024 22:30:46 +0100 Subject: Add compiler internals tests There are several test decls inside `/src` that are not currently being tested and have bitrotted as a result. This commit revives those tests and adds the `test-compiler-internals` set of tests which tests everything reachable from `/src/main.zig`. --- src/InternPool.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/InternPool.zig') diff --git a/src/InternPool.zig b/src/InternPool.zig index d0ed875d86..749be6348a 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -9822,6 +9822,7 @@ test "basic usage" { const gpa = std.testing.allocator; var ip: InternPool = .empty; + try ip.init(gpa, 1); defer ip.deinit(gpa); const i32_type = try ip.get(gpa, .main, .{ .int_type = .{ -- cgit v1.2.3