https://issues.dlang.org/show_bug.cgi?id=14829

--- Comment #5 from Walter Bright <[email protected]> ---
Even smaller:

int stripLeft(int str, int dc)
{
    while (true)
    {
        int a = str;
        int s = a;
        str += 1;
        if (dc) return s;
    }
}

void main ()
{
    assert (stripLeft(3, 1) == 3); // fails with -O
}

--

Reply via email to