blob: fd92798366c60089f55f17b80d4f256b931e79fa [file] [log] [blame]
/*
REQUIRED_ARGS: -m64
TEST_OUTPUT:
---
fail_compilation/test16381.d(15): Error: `foo()` is not an lvalue and cannot be modified
---
*/
// https://issues.dlang.org/show_bug.cgi?id=16381
__vector(float[4]) foo();
void bar()
{
float g = foo().ptr[0];
}