summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test11656.d
blob: 226144f66f941549198b9975be5a8db38228cc4c (plain)
1
2
3
4
5
6
7
8
9
10

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");
}