| author | |
| committer | |
| log | d7061f33786b5f7fa15cb73359100c1fc485646e |
| tree | 5cd9471c4a4d2c9375de22cbedf7c3a05be060b5 |
| parent | 72388e28e4f3786743b33c4075b8f9dddc1babea |
| signature | Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM |
4 files changed, 6 insertions(+), 31 deletions(-)
test/cases/empty_global_error_set.zig created+6| ... | ... | @@ -0,0 +1,6 @@ |
| 1 | fn errorName(err: anyerror) [:0]const u8 { | |
| 2 | return @errorName(err); | |
| 3 | } | |
| 4 | export const error_name: *const anyopaque = &errorName; | |
| 5 | ||
| 6 | // compile |
test/standalone/build.zig.zon-3| ... | ... | @@ -168,9 +168,6 @@ |
| 168 | 168 | .run_output_paths = .{ |
| 169 | 169 | .path = "run_output_paths", |
| 170 | 170 | }, |
| 171 | .empty_global_error_set = .{ | |
| 172 | .path = "empty_global_error_set", | |
| 173 | }, | |
| 174 | 171 | .config_header = .{ |
| 175 | 172 | .path = "config_header", |
| 176 | 173 | }, |
test/standalone/empty_global_error_set/build.zig deleted-24| ... | ... | @@ -1,24 +0,0 @@ |
| 1 | const std = @import("std"); | |
| 2 | const builtin = @import("builtin"); | |
| 3 | ||
| 4 | pub 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 @@ |
| 1 | fn errorName(err: anyerror) [:0]const u8 { | |
| 2 | return @errorName(err); | |
| 3 | } | |
| 4 | export const error_name: *const anyopaque = &errorName; |