mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
10 lines
174 B
D
10 lines
174 B
D
|
|
static if (__traits(compiles, __vector(float[4])))
|
|
{
|
|
struct Foo
|
|
{
|
|
__vector(float[4]) x;
|
|
}
|
|
static assert(Foo.x.offsetof == 0);
|
|
static assert(Foo.x.stringof == "x");
|
|
}
|