annotate nocompile/inline_07.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 d3a3e0c251d8
children
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
1384
d3a3e0c251d8 nntp: -> http:
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3017
295
28dd23a1080b inline / static
thomask
parents:
diff changeset
9
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 739
diff changeset
10 // __DSTRESS_TORTURE_BLOCK__ -release
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 739
diff changeset
11 // __DSTRESS_ELINE__ 22
295
28dd23a1080b inline / static
thomask
parents:
diff changeset
12
28dd23a1080b inline / static
thomask
parents:
diff changeset
13 module dstress.nocompile.inline_07;
28dd23a1080b inline / static
thomask
parents:
diff changeset
14
28dd23a1080b inline / static
thomask
parents:
diff changeset
15 struct MyStruct{
28dd23a1080b inline / static
thomask
parents:
diff changeset
16 int bug() {
28dd23a1080b inline / static
thomask
parents:
diff changeset
17 return 3;
28dd23a1080b inline / static
thomask
parents:
diff changeset
18 }
28dd23a1080b inline / static
thomask
parents:
diff changeset
19 }
28dd23a1080b inline / static
thomask
parents:
diff changeset
20
28dd23a1080b inline / static
thomask
parents:
diff changeset
21 int main(){
28dd23a1080b inline / static
thomask
parents:
diff changeset
22 assert(MyStruct.bug()==3);
28dd23a1080b inline / static
thomask
parents:
diff changeset
23 return 0;
870
38ea1bb385b6 bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
thomask
parents: 739
diff changeset
24 }