authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-09 08:25:46+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-10 08:36:07+02:00
logd7061f33786b5f7fa15cb73359100c1fc485646e
tree5cd9471c4a4d2c9375de22cbedf7c3a05be060b5
parent72388e28e4f3786743b33c4075b8f9dddc1babea
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test: move empty_global_error_set from test-standalone to test-cases


4 files changed, 6 insertions(+), 31 deletions(-)

test/cases/empty_global_error_set.zig created+6
......@@ -0,0 +1,6 @@
1fn errorName(err: anyerror) [:0]const u8 {
2 return @errorName(err);
3}
4export const error_name: *const anyopaque = &errorName;
5
6// compile
test/standalone/build.zig.zon-3
......@@ -168,9 +168,6 @@
168168 .run_output_paths = .{
169169 .path = "run_output_paths",
170170 },
171 .empty_global_error_set = .{
172 .path = "empty_global_error_set",
173 },
174171 .config_header = .{
175172 .path = "config_header",
176173 },
test/standalone/empty_global_error_set/build.zig deleted-24
......@@ -1,24 +0,0 @@
1const std = @import("std");
2const builtin = @import("builtin");
3
4pub fn build(b: *std.Build) void {
5 const test_step = b.step("test", "Test it");
6 b.default_step = test_step;
7
8 for ([_]bool{ false, true }) |use_llvm| {
9 const main = b.addObject(.{
10 .name = "main",
11 .root_module = b.createModule(.{
12 .root_source_file = b.path("main.zig"),
13 .target = b.resolveTargetQuery(.{
14 .cpu_arch = .x86_64,
15 .os_tag = .linux,
16 }),
17 }),
18 .use_llvm = use_llvm,
19 .use_lld = use_llvm,
20 });
21 _ = main.getEmittedBin();
22 test_step.dependOn(&main.step);
23 }
24}
test/standalone/empty_global_error_set/main.zig deleted-4
......@@ -1,4 +0,0 @@
1fn errorName(err: anyerror) [:0]const u8 {
2 return @errorName(err);
3}
4export const error_name: *const anyopaque = &errorName;