annotate run/abstract_07.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 ec5e144583ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
311
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
1 // $HeadURL$
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
2 // $Date$
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
3 // $Author$
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
4
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
5 // @author@ Stewart Gordon
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
6 // @date@ 2004-09-24
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
7 // @uri@ news:cj0qf6$2u2v$1@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=1940
311
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
9
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
10 module dstress.run.abstract_07;
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
11
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
12 abstract class A{
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
13 int test(){
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
14 return 3;
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
15 }
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
16 }
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
17
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
18 class B : A{
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
19 }
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
20
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
21 int main(){
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
22 A a = new B();
1559
ec5e144583ea D1 -> D2 : 1/N
thomask
parents: 1384
diff changeset
23 if(3 != a.test()){
ec5e144583ea D1 -> D2 : 1/N
thomask
parents: 1384
diff changeset
24 assert(0);
ec5e144583ea D1 -> D2 : 1/N
thomask
parents: 1384
diff changeset
25 }
311
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
26 return 0;
35a1df98caf1 updated abstract tests to dmd-118
thomask
parents:
diff changeset
27 }