[Issue 10939] Inconsistent stripping of "in" but not assert in release/unittest

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 5 22:33:17 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=10939



--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2014-01-05 22:33:09 PST ---
Current behavior:

If "-release" is specified, following code would be stripped normally:
- invariant
- in contract
- out contract
- assertions

 https://github.com/D-Programming-Language/dmd/blob/master/src/mars.c#L1107

But, if "-unittest" is specified at the same time, just only assertions will be
re-enabled.

 https://github.com/D-Programming-Language/dmd/blob/master/src/mars.c#L1121

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list