Commit c040c0f45a

r00ster91 <r00ster91@proton.me>
2023-05-28 01:39:59
test cases: @intCast on vector
Closes #11770
1 parent 7213234
Changed files (1)
test
cases
compile_errors
test/cases/compile_errors/@intCast_on_vec.zig
@@ -0,0 +1,13 @@
+export fn entry() void {
+    const a = @Vector(4, u32){ 1, 1, 1, 1 };
+    _ = @as(u32, @intCast(a));
+}
+
+// TODO: change target in the manifest to "native" probably after this is fixed:
+//       https://github.com/ziglang/zig/issues/13782
+
+// error
+// backend=stage2
+// target=x86_64-linux
+//
+// :3:27: error: expected type 'u32', found '@Vector(4, u32)'