mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
28 lines
389 B
D
28 lines
389 B
D
// REQUIRED_ARGS: -O
|
|
import core.simd;
|
|
|
|
static if (__traits(compiles, { void16 a; ushort8 b; }))
|
|
{
|
|
void check(void16 a)
|
|
{
|
|
foreach (x; (cast(ushort8)a).array)
|
|
{
|
|
assert(x == 1);
|
|
}
|
|
}
|
|
|
|
void make(ushort x)
|
|
{
|
|
ushort8 v = ushort8(x);
|
|
check(v);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
make(1);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
void main() { }
|
|
}
|