blob: 37999666ad93ed7d0c5ef3d9cd0de79e2fe05ff4 [file] [log] [blame]
struct S { char[1] e = void; }
void init(ref char[1] e)
{
e[0 .. 1] = "A";
}
int foo()
{
auto s = S();
init(s.e);
return __ctfe;
}
static assert(foo() == 1);