Skip to content

Commit dd0ea92

Browse files
committed
test cases: @intcast on vector
Closes ziglang#11770
1 parent aca6bf0 commit dd0ea92

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export fn entry() void {
2+
const a = @Vector(4, u32){ 1, 1, 1, 1 };
3+
_ = @intCast(u32, a);
4+
}
5+
6+
// error
7+
// backend=stage2
8+
// target=native
9+
//
10+
// :3:23: error: expected type 'u32', found '@Vector(4, u32)'

0 commit comments

Comments
 (0)