diff --git a/test/cases/empty_global_error_set.zig b/test/cases/empty_global_error_set.zig new file mode 100644 index 0000000000000000000000000000000000000000..987e2e2628b7d87a6564c0ec2d25cca52f0e7c03 --- /dev/null +++ b/test/cases/empty_global_error_set.zig @@ -0,0 +1,6 @@ +fn errorName(err: anyerror) [:0]const u8 { + return @errorName(err); +} +export const error_name: *const anyopaque = &errorName; + +// compile diff --git a/test/standalone/build.zig.zon b/test/standalone/build.zig.zon index e134d00bd7d5977cda3341787a3dfefca86b4b7c..895af508f35ee03916312dc6099d9c8c3e301641 100644 --- a/test/standalone/build.zig.zon +++ b/test/standalone/build.zig.zon @@ -168,9 +168,6 @@ .run_output_paths = .{ .path = "run_output_paths", }, - .empty_global_error_set = .{ - .path = "empty_global_error_set", - }, .config_header = .{ .path = "config_header", }, diff --git a/test/standalone/empty_global_error_set/build.zig b/test/standalone/empty_global_error_set/build.zig deleted file mode 100644 index ad971aa6d113791521ee42afdfb06070d06d0cbb..0000000000000000000000000000000000000000 --- a/test/standalone/empty_global_error_set/build.zig +++ /dev/null @@ -1,24 +0,0 @@ -const std = @import("std"); -const builtin = @import("builtin"); - -pub fn build(b: *std.Build) void { - const test_step = b.step("test", "Test it"); - b.default_step = test_step; - - for ([_]bool{ false, true }) |use_llvm| { - const main = b.addObject(.{ - .name = "main", - .root_module = b.createModule(.{ - .root_source_file = b.path("main.zig"), - .target = b.resolveTargetQuery(.{ - .cpu_arch = .x86_64, - .os_tag = .linux, - }), - }), - .use_llvm = use_llvm, - .use_lld = use_llvm, - }); - _ = main.getEmittedBin(); - test_step.dependOn(&main.step); - } -} diff --git a/test/standalone/empty_global_error_set/main.zig b/test/standalone/empty_global_error_set/main.zig deleted file mode 100644 index ecf7cf5167709c8fad7b37c5a4b72c203a30b3f9..0000000000000000000000000000000000000000 --- a/test/standalone/empty_global_error_set/main.zig +++ /dev/null @@ -1,4 +0,0 @@ -fn errorName(err: anyerror) [:0]const u8 { - return @errorName(err); -} -export const error_name: *const anyopaque = &errorName;