[Issue 16224] -cov marks the last line of do/while(0); as uncovered

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 1 11:03:14 PDT 2016


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

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #4 from Steven Schveighoffer <schveiguy at yahoo.com> ---
I don't see why while(true) is any worse.

Essentially:

while(true)
{
...
break;
}

Is the same as the do...while(0)

--


More information about the Digitalmars-d-bugs mailing list