blob: f4b825fb9b9ba1a6cb7ecff31f7af3a7fd360a69 [file] [log] [blame]
// 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() { }
}