Mercurial > projects > ldc
view tests/mini/bug15.d @ 351:f273f5c58a9a trunk
[svn r372] Fixed extern(C++) handling now same as DMD, which is to treat it like extern(C).
Fixed a problem in resolving struct types where the size of elements might not yet be known. Switched to using DMD size() instead
of LLVM ABI size (TargetData).
author | lindquist |
---|---|
date | Mon, 14 Jul 2008 03:23:43 +0200 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module bug15; bool bool1(bool b) { if (b) return true; else return false; } bool bool2(bool b) { if (b) {return true;} else {return false;} } void main() { assert(bool1(true)); assert(!bool2(false)); }