aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-08-19 17:35:19 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-08-19 17:35:19 -0400
commit6bc520ab957e25f9ae6d0f4d8a8ad4b96e145ac3 (patch)
tree81cdb2ae9662ac51d905eea0ccd40948ebc99c2a /test
parent24deb1a7fe955202335ed7540fa20a43ae6eca36 (diff)
downloadzig-6bc520ab957e25f9ae6d0f4d8a8ad4b96e145ac3.tar.gz
zig-6bc520ab957e25f9ae6d0f4d8a8ad4b96e145ac3.zip
solve it a slightly different way
the error handling of result locations is a bit awkward but it should basically be the same everywhere
Diffstat (limited to 'test')
-rw-r--r--test/stage1/behavior/bitcast.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/stage1/behavior/bitcast.zig b/test/stage1/behavior/bitcast.zig
index a8d90b6ae6..92777e3d12 100644
--- a/test/stage1/behavior/bitcast.zig
+++ b/test/stage1/behavior/bitcast.zig
@@ -129,4 +129,5 @@ test "implicit cast to error union by returning" {
// issue #3010: compiler segfault
test "bitcast literal [4]u8 param to u32" {
const ip = @bitCast(u32, [_]u8{ 255, 255, 255, 255 });
+ expect(ip == maxInt(u32));
}