Mercurial > projects > dstress
annotate run/i/inline_16_B.d @ 1319:81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:58:06 +0000 |
parents | 9dcac8d4e97f |
children |
rev | line source |
---|---|
1035
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
2 // $Date$ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
3 // $Author$ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
4 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
5 // @author@ <sky@quit-clan.de> |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
6 // @date@ 2006-05-24 |
1319
81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1091
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=156 |
1035
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
8 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
9 module dstress.run.i.inline_16_B; |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
10 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
11 int status; |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
12 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
13 class Foo{ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
14 class Bar{ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
15 void doSayHello(){ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
16 sayHello(); |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
17 } |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
18 } |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
19 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
20 Bar bar; |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
21 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
22 void sayHello(){ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
23 status++; |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
24 } |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
25 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
26 this(){ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
27 bar = new Bar(); |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
28 } |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
29 } |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
30 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
31 class Foo2 : Foo{ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
32 } |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
33 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
34 int main(){ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
35 Foo f = new Foo2(); |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
36 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
37 if(status != 0){ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
38 assert(0); |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
39 } |
1091 | 40 |
1035
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
41 f.bar.doSayHello(); |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
42 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
43 if(status != 1){ |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
44 assert(0); |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
45 } |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
46 |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
47 return 0; |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
48 } |
796acf477795
Inheriting nested classes and "-inline" throws access violation
thomask
parents:
diff
changeset
|
49 |