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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
295
28dd23a1080b inline / static
thomask
parents:
diff changeset
1 // $HeadURL$
28dd23a1080b inline / static
thomask
parents:
diff changeset
2 // $Date$
28dd23a1080b inline / static
thomask
parents:
diff changeset
3 // $Author$
28dd23a1080b inline / static
thomask
parents:
diff changeset
4
28dd23a1080b inline / static
thomask
parents:
diff changeset
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
28dd23a1080b inline / static
thomask
parents:
diff changeset
6 // @date@ 2005-02-19
28dd23a1080b inline / static
thomask
parents:
diff changeset
7 // @uri@ news:cv77ei$27mv$3@digitaldaemon.com
28dd23a1080b inline / static
thomask
parents:
diff changeset
8 // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3017
28dd23a1080b inline / static
thomask
parents:
diff changeset
9
28dd23a1080b inline / static
thomask
parents:
diff changeset
10 // __DSTRESS_DFLAGS__ -inline
28dd23a1080b inline / static
thomask
parents:
diff changeset
11
28dd23a1080b inline / static
thomask
parents:
diff changeset
12 module dstress.nocompile.inline_07;
28dd23a1080b inline / static
thomask
parents:
diff changeset
13
28dd23a1080b inline / static
thomask
parents:
diff changeset
14 struct MyStruct{
28dd23a1080b inline / static
thomask
parents:
diff changeset
15 int bug() {
28dd23a1080b inline / static
thomask
parents:
diff changeset
16 return 3;
28dd23a1080b inline / static
thomask
parents:
diff changeset
17 }
28dd23a1080b inline / static
thomask
parents:
diff changeset
18 }
28dd23a1080b inline / static
thomask
parents:
diff changeset
19
28dd23a1080b inline / static
thomask
parents:
diff changeset
20 int main(){
28dd23a1080b inline / static
thomask
parents:
diff changeset
21 assert(MyStruct.bug()==3);
28dd23a1080b inline / static
thomask
parents:
diff changeset
22 return 0;
28dd23a1080b inline / static
thomask
parents:
diff changeset
23 }