diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-06-29 14:26:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-29 14:26:23 -0400 |
| commit | 98681b2da070755c29065d21d2ffb17be37d9619 (patch) | |
| tree | cf9592ac47d5fd6d10557be65fb9d38c624728ee /test/behavior/basic.zig | |
| parent | 7cc417644862a9b9523545f4455da7722afc8209 (diff) | |
| parent | c3ae909e935f1548408f2e400464370ee02b7e82 (diff) | |
| download | zig-98681b2da070755c29065d21d2ffb17be37d9619.tar.gz zig-98681b2da070755c29065d21d2ffb17be37d9619.zip | |
Merge pull request #11958 from ziglang/store-to-inferred-ptr
stage2: fix miscompilations for peer expressions any time they needed coercions to runtime types
Diffstat (limited to 'test/behavior/basic.zig')
| -rw-r--r-- | test/behavior/basic.zig | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index d288d35787..8241579229 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -928,18 +928,6 @@ test "try in labeled block doesn't cast to wrong type" { _ = s; } -test "comptime int in switch in catch is casted to correct inferred type" { - if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; - if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; - - var a: error{ A, B }!u64 = 0; - var b = a catch |err| switch (err) { - error.A => 0, - else => unreachable, - }; - _ = b; -} - test "vector initialized with array init syntax has proper type" { comptime { const actual = -@Vector(4, i32){ 1, 2, 3, 4 }; |
