Mercurial > projects > dstress
annotate compile/inline_03.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | 5c6df2afb08f |
children |
rev | line source |
---|---|
276 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ nail <nail_member@pathlink.com> | |
6 // @date@ 2005-02-06 | |
7 // @uri@ news:cu5ghl$1cpd$1@digitaldaemon.com | |
8 | |
9 module dstress.compile.inline_03; | |
10 | |
11 struct Struct{ | |
12 | |
13 static Struct bug(){ | |
14 Struct mat; | |
15 | |
16 with (mat){ | |
17 } | |
18 | |
19 return mat; | |
20 } | |
21 | |
22 static Struct check(){ | |
23 Struct a; | |
24 return Struct.bug() * a; | |
25 } | |
26 | |
27 Struct opMul(Struct mat){ | |
28 return mat; | |
29 } | |
30 } | |
31 |