aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bitcast.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-07-12 19:13:26 -0700
committerGitHub <noreply@github.com>2023-07-12 19:13:26 -0700
commite05c242cd89d03ae67fa7b8d5fc33fb5dc42dbe3 (patch)
treea9224a9d47bfda3873284718515cccda78ec32ba /test/behavior/bitcast.zig
parentd78517f4f0f540f0d0254a78e47a7b4a30e98c74 (diff)
parent47d5bf26164b4ddb3228d17ae2158d1c29b8d040 (diff)
downloadzig-e05c242cd89d03ae67fa7b8d5fc33fb5dc42dbe3.tar.gz
zig-e05c242cd89d03ae67fa7b8d5fc33fb5dc42dbe3.zip
Merge pull request #16346 from antlilja/splat-rls
Apply RLS to @splat builtin, eliminating its length parameter
Diffstat (limited to 'test/behavior/bitcast.zig')
-rw-r--r--test/behavior/bitcast.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/bitcast.zig b/test/behavior/bitcast.zig
index 49fc85a13e..14e885fc80 100644
--- a/test/behavior/bitcast.zig
+++ b/test/behavior/bitcast.zig
@@ -396,7 +396,7 @@ test "bitcast vector to integer and back" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
const arr: [16]bool = [_]bool{ true, false } ++ [_]bool{true} ** 14;
- var x = @splat(16, true);
+ var x: @Vector(16, bool) = @splat(true);
x[1] = false;
try expect(@as(u16, @bitCast(x)) == comptime @as(u16, @bitCast(@as(@Vector(16, bool), arr))));
}