diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-05-23 18:48:10 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-05-24 15:34:52 -0700 |
| commit | 02e9d9b43b3b1cd9a4858a1f2bff302057dc2ee2 (patch) | |
| tree | 211ff30043bc817e462a6845e2bf0437a7a179af /test/behavior | |
| parent | c97c7f9e3bade44136f2bdf8ec4015f1b1b8303f (diff) | |
| download | zig-02e9d9b43b3b1cd9a4858a1f2bff302057dc2ee2.tar.gz zig-02e9d9b43b3b1cd9a4858a1f2bff302057dc2ee2.zip | |
stage2: make `?anyerror` represented the same as `anyerror`
I was able to get the backend implementation working on LLVM and the C
backend, but I'm going to ask for some help on the other backends.
Diffstat (limited to 'test/behavior')
| -rw-r--r-- | test/behavior/error.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/behavior/error.zig b/test/behavior/error.zig index 459ffb12d0..1b2a67bd57 100644 --- a/test/behavior/error.zig +++ b/test/behavior/error.zig @@ -433,9 +433,8 @@ test "return function call to error set from error union function" { } test "optional error set is the same size as error set" { - if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO - comptime try expect(@sizeOf(?anyerror) == @sizeOf(anyerror)); + comptime try expect(@alignOf(?anyerror) == @alignOf(anyerror)); const S = struct { fn returnsOptErrSet() ?anyerror { return null; |
