Mercurial > projects > dstress
annotate run/i/inline_16_C.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | 23834ba9736a |
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_C; |
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(){ |
1598
23834ba9736a
Fixed typos in test cases. See D bug 2174.
Christian Kamm <kamm incasoftware de>
parents:
1319
diff
changeset
|
35 Foo2 f = new Foo2(); |
1035
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 |