authorgravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2023-05-28 01:39:59+02:00
committergravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2023-06-27 19:57:19-04:00
logc040c0f45a2940dfa71fd9e835f815207931b6a9
tree1d08af11c1f0e601a8b0710b025fa8b827fb295e
parent7213234f0c5188422540d5aa3a80984c2cd54581

test cases: @intCast on vector

Closes #11770

1 files changed, 13 insertions(+), 0 deletions(-)

test/cases/compile_errors/@intCast_on_vec.zig created+13
......@@ -0,0 +1,13 @@
1export fn entry() void {
2 const a = @Vector(4, u32){ 1, 1, 1, 1 };
3 _ = @as(u32, @intCast(a));
4}
5
6// TODO: change target in the manifest to "native" probably after this is fixed:
7// https://github.com/ziglang/zig/issues/13782
8
9// error
10// backend=stage2
11// target=x86_64-linux
12//
13// :3:27: error: expected type 'u32', found '@Vector(4, u32)'