aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/enum.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-02-22 22:04:32 +0100
committerJakub Konka <kubkon@jakubkonka.com>2022-02-22 22:04:32 +0100
commit8e4a8771f56f41a56264eb000ee347ddf7b71dc4 (patch)
tree28abe072e913835f99fedff7c2944a42073c8fd0 /test/behavior/enum.zig
parent8abd30019c6e156b8c79f675f29c76ebf762a7d9 (diff)
downloadzig-8e4a8771f56f41a56264eb000ee347ddf7b71dc4.tar.gz
zig-8e4a8771f56f41a56264eb000ee347ddf7b71dc4.zip
Skip unsupported enum behavior tests
Diffstat (limited to 'test/behavior/enum.zig')
-rw-r--r--test/behavior/enum.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/behavior/enum.zig b/test/behavior/enum.zig
index 48f4019c73..d0f62842c1 100644
--- a/test/behavior/enum.zig
+++ b/test/behavior/enum.zig
@@ -987,6 +987,10 @@ test "enum literal casting to tagged union" {
const Bar = enum { A, B, C, D };
test "enum literal casting to error union with payload enum" {
+ if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
+
var bar: error{B}!Bar = undefined;
bar = .B; // should never cast to the error set