Skip unsupported enum behavior tests

This commit is contained in:
Jakub Konka 2022-02-22 22:04:32 +01:00
parent 8abd30019c
commit 8e4a8771f5

View File

@ -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