Mercurial > projects > ldc
view tests/minicomplex/constructors.d @ 978:6a32d2e18175
Fix a latent bug in the asm code.
I think that technically, using "*m0" instead of "*0" allows LLVM to pick
between using the same memory as output 0 and using a new memory location.
(So far I haven't been able to construct a testcase that actually breaks
because of this, though)
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 18 Feb 2009 03:38:12 +0100 |
parents | 4ac97ec7c18e |
children |
line wrap: on
line source
module constructors; import tango.io.Console; class C { this() { Cout("C()").newline; } this(char[] str) { Cout("C(")(str)(")").newline; } } class D : C { this() { super("D"); Cout("D()").newline; } } void main() { auto c1 = new C(); auto c2 = new C("C"); auto d = new D(); }