[svn r31] * Fixed returning through hidden pointer was unable to report back the return value

* Fixed removed some litter instructions sometimes produced by constructor calls
This commit is contained in:
Tomas Lindquist Olsen
2007-10-04 11:39:53 +02:00
parent c357c96471
commit 02cf2ac384
3 changed files with 31 additions and 7 deletions

4
test/bug2.d Normal file
View File

@@ -0,0 +1,4 @@
module bug2;
struct Vec { Vec barf() { return Vec(); } }
class test { this(Vec whee) { } }
void main() { Vec whee; new test(whee.barf()); }