Commit 9e11f67f0d

Andrew Kelley <andrew@ziglang.org>
2019-07-24 21:05:39
add test for previous commit
1 parent 8e4f3a6
Changed files (1)
test
stage1
behavior
test/stage1/behavior/vector.zig
@@ -74,3 +74,9 @@ test "implicit cast vector to array" {
     S.doTheTest();
     comptime S.doTheTest();
 }
+
+test "array to vector" {
+    var foo: f32 = 3.14;
+    var arr = [4]f32{ foo, 1.5, 0.0, 0.0 };
+    var vec: @Vector(4, f32) = arr;
+}