blob: 52b5285b83b8347a9fdc756d0ea78db04f50dd2e [file] [log] [blame]
/*
REQUIRED_ARGS: -m64
TEST_OUTPUT:
---
fail_compilation/fail10905.d(20): Error: incompatible types for `(this.x) == (cast(const(__vector(long[2])))cast(__vector(long[2]))1L)`: both operands are of type `const(__vector(long[2]))`
---
*/
struct Foo
{
enum __vector(long[2]) y = 1;
}
struct Bar
{
__vector(long[2]) x;
bool spam() const
{
return x == Foo.y;
}
}