Mercurial > projects > ldc
view test/bug47.d @ 82:d8dd47ef3973 trunk
[svn r86] Changed the way arguments are given storage. It is now detected if they will need it during semantic passes.
Initial support for debug information. Very limited, but MUCH better than nothing :)
author | lindquist |
---|---|
date | Fri, 02 Nov 2007 01:17:26 +0100 |
parents | |
children |
line wrap: on
line source
module bug47; bool func(bool a, bool b) { if (a) b = false; return b; } void main() { assert(func(0,0) == 0); assert(func(0,1) == 1); assert(func(1,0) == 0); assert(func(1,1) == 0); }