mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
19 lines
300 B
D
19 lines
300 B
D
// PERMUTE_ARGS:
|
|
|
|
static if (__traits(compiles, __vector(float[4])))
|
|
{
|
|
alias float4 = __vector(float[4]);
|
|
|
|
void foo(float4* ptr, float4 val)
|
|
{
|
|
assert((cast(ulong) &val & 0xf) == 0);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
float4 v;
|
|
foo(&v, v);
|
|
}
|
|
}
|
|
else
|
|
void main(){}
|