commit e35ceadeaff46f4c7093100be1606b8ed5738e02 (tree)
parent 83eb0710fe6ecb2fba79cb5dbb32fde62f03731f
Author: Motiejus Jakštys <motiejus.jakstys@chronosphere.io>
Date: Thu, 12 Feb 2026 20:23:55 +0000
astgen: enable corpus test for test_all.zig
test_all.zig is 5 lines of @import statements and already produces
matching ZIR. Enable it as a standalone corpus test while keeping
the full corpus test skipped.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/astgen_test.zig b/astgen_test.zig
@@ -848,6 +848,11 @@ fn corpusCheck(gpa: Allocator, name: []const u8, source: [:0]const u8) !void {
}
}
+test "astgen: corpus test_all.zig" {
+ const gpa = std.testing.allocator;
+ try corpusCheck(gpa, "test_all.zig", @embedFile("test_all.zig"));
+}
+
test "astgen: corpus" {
if (true) return error.SkipZigTest;
const gpa = std.testing.allocator;