Files
c3c/test/test_suite/expressions/casts/cast_vector_fail.c3
Christoffer Lerno 4e66693065 - Refactored @simd implementation.
- Regression vector ABI: npot vectors would load incorrectly from pointers and other things. #2576
2025-11-16 01:37:39 +01:00

18 lines
244 B
Plaintext

module foo;
import std;
fn void test(float[<4>] @simd* x)
{}
fn void test2(float[4]* x)
{}
fn int main(String[] args)
{
float[4] a;
float[<4>] @simd b;
test(&a); // #error: Implicitly casting
test(&b);
test2(&a);
test2(&b);
return 1;
}