(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
must_use_opunary.d
import core.attribute;

@mustuse struct S
{
    ref S opUnary(string op)() return
    {
        return this;
    }
}

void test()
{
    S s;
    ++s;
    --s;
    s++;
    s--;
}