aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/basic.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-06-28 17:56:28 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-06-28 18:38:25 -0700
commitc3ae909e935f1548408f2e400464370ee02b7e82 (patch)
tree165a355a68a838ec4fa894a0496ab471b0439a42 /test/behavior/basic.zig
parenta058696df280ad50c28a2d501a6a2c38a7e3a532 (diff)
downloadzig-c3ae909e935f1548408f2e400464370ee02b7e82.tar.gz
zig-c3ae909e935f1548408f2e400464370ee02b7e82.zip
Revert "AstGen: preserve inferred ptr result loc for breaks"
This reverts commit 8bf3e1f8d0902abd4133e2729b3625c25011c3ff, which introduced miscompilations for peer expressions any time they needed coercions to runtime types. I opened #11957 as a proposal to accomplish the goal of the reverted commit. Closes #11898
Diffstat (limited to 'test/behavior/basic.zig')
-rw-r--r--test/behavior/basic.zig12
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 };