mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
parent
7213234f0c
commit
c040c0f45a
1 changed files with 13 additions and 0 deletions
13
test/cases/compile_errors/@intCast_on_vec.zig
Normal file
13
test/cases/compile_errors/@intCast_on_vec.zig
Normal file
|
|
@ -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)'
|
||||
Loading…
Add table
Reference in a new issue