Mercurial > projects > dstress
annotate nocompile/inline_07.d @ 295:28dd23a1080b
inline / static
Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
2005-02-19
news:cv77ei$27mv$3@digitaldaemon.com
nntp://news.digitalmars.com/digitalmars.D.bugs/3017
author | thomask |
---|---|
date | Sat, 19 Feb 2005 11:23:31 +0000 |
parents | |
children | f87ba6507260 |
rev | line source |
---|---|
295 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> | |
6 // @date@ 2005-02-19 | |
7 // @uri@ news:cv77ei$27mv$3@digitaldaemon.com | |
8 // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3017 | |
9 | |
10 // __DSTRESS_DFLAGS__ -inline | |
11 | |
12 module dstress.nocompile.inline_07; | |
13 | |
14 struct MyStruct{ | |
15 int bug() { | |
16 return 3; | |
17 } | |
18 } | |
19 | |
20 int main(){ | |
21 assert(MyStruct.bug()==3); | |
22 return 0; | |
23 } |