Skip to content

Commit 9e11f67

Browse files
committed
add test for previous commit
1 parent 8e4f3a6 commit 9e11f67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/stage1/behavior/vector.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,9 @@ test "implicit cast vector to array" {
7474
S.doTheTest();
7575
comptime S.doTheTest();
7676
}
77+
78+
test "array to vector" {
79+
var foo: f32 = 3.14;
80+
var arr = [4]f32{ foo, 1.5, 0.0, 0.0 };
81+
var vec: @Vector(4, f32) = arr;
82+
}

0 commit comments

Comments
 (0)