mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Regression vector ABI: npot vectors would load incorrectly from pointers and other things. #2576
18 lines
244 B
Plaintext
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;
|
|
}
|