Files
ldc/test/bug2.d
Tomas Lindquist Olsen 02cf2ac384 [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
2007-10-04 11:39:53 +02:00

5 lines
140 B
D

module bug2;
struct Vec { Vec barf() { return Vec(); } }
class test { this(Vec whee) { } }
void main() { Vec whee; new test(whee.barf()); }