diff options
| author | Carl Ã…stholm <carl@astholm.se> | 2024-11-06 22:30:46 +0100 |
|---|---|---|
| committer | Ian Johnson <ian@ianjohnson.dev> | 2024-12-13 08:49:02 -0500 |
| commit | b352595aa2ede0c2fd53094da4123aac031335ec (patch) | |
| tree | aa94a2af3250a50ddf169a8e2c1da0e11f34f730 /src/InternPool.zig | |
| parent | 82f35c51866826fb71eb6f27d9210bb738d602e9 (diff) | |
| download | zig-b352595aa2ede0c2fd53094da4123aac031335ec.tar.gz zig-b352595aa2ede0c2fd53094da4123aac031335ec.zip | |
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`.
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 1 |
1 files changed, 1 insertions, 0 deletions
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 = .{ |
