| author | |
| committer | |
| log | cbf2b1fea43c53cb33a362b277fe688f06744bf1 |
| tree | 01e14ffb195b736746410cdf8d0a3c36f759f0f4 |
| parent | dd189a354bf1c77b1996725902c7f29526cc22a4 |
1 files changed, 5 insertions(+), 0 deletions(-)
test/behavior/vector.zig+5| ... | ... | @@ -1525,3 +1525,8 @@ test "bitcast to vector with different child type" { |
| 1525 | 1525 | try S.doTheTest(); |
| 1526 | 1526 | try comptime S.doTheTest(); |
| 1527 | 1527 | } |
| 1528 | ||
| 1529 | test "index into comptime-known vector is comptime-known" { | |
| 1530 | const vec: @Vector(2, f16) = [2]f16{ 1.5, 3.5 }; | |
| 1531 | if (vec[0] != 1.5) @compileError("vec should be comptime"); | |
| 1532 | } |