aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/error.zig
diff options
context:
space:
mode:
authorJoachim Schmidt <joachim.schmidt557@outlook.com>2022-03-05 14:30:02 +0100
committerGitHub <noreply@github.com>2022-03-05 14:30:02 +0100
commitac936c0aba94c2cf5ff8537c1808445eacf38a15 (patch)
tree3104f7247031c726a9d0085dd44508c2f3bbcb61 /test/behavior/error.zig
parente297860158cabb74a261a979f2f17305716c6e10 (diff)
parenta06e9eca45f72b28ed9ca00da5c9562e969cc84d (diff)
downloadzig-ac936c0aba94c2cf5ff8537c1808445eacf38a15.tar.gz
zig-ac936c0aba94c2cf5ff8537c1808445eacf38a15.zip
Merge pull request #11059 from joachimschmidt557/stage2-aarch64
stage2 AArch64: various improvements
Diffstat (limited to 'test/behavior/error.zig')
-rw-r--r--test/behavior/error.zig13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/behavior/error.zig b/test/behavior/error.zig
index 982926c5bf..61d192b483 100644
--- a/test/behavior/error.zig
+++ b/test/behavior/error.zig
@@ -6,16 +6,12 @@ const expectEqual = std.testing.expectEqual;
const mem = std.mem;
test "error values" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
-
const a = @errorToInt(error.err1);
const b = @errorToInt(error.err2);
try expect(a != b);
}
test "redefinition of error values allowed" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
-
shouldBeNotEqual(error.AnError, error.SecondError);
}
fn shouldBeNotEqual(a: anyerror, b: anyerror) void {
@@ -36,8 +32,6 @@ fn errBinaryOperatorG(x: bool) anyerror!isize {
}
test "empty error union" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
-
const x = error{} || error{};
_ = x;
}
@@ -91,8 +85,6 @@ fn makeANonErr() anyerror!i32 {
}
test "syntax: optional operator in front of error union operator" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
-
comptime {
try expect(?(anyerror!i32) == ?(anyerror!i32));
}
@@ -147,8 +139,6 @@ test "implicit cast to optional to error union to return result loc" {
}
test "error: fn returning empty error set can be passed as fn returning any error" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
-
entry();
comptime entry();
}
@@ -165,7 +155,6 @@ fn foo2(f: fn () anyerror!void) void {
fn bar2() (error{}!void) {}
test "error union type " {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
@@ -182,7 +171,6 @@ fn testErrorUnionType() !void {
}
test "error set type" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
@@ -209,7 +197,6 @@ fn testErrorSetType() !void {
}
test "explicit error set cast" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO