Mercurial > projects > dstress
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 |
rev | line source |
---|---|
311 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Stewart Gordon | |
6 // @date@ 2004-09-24 | |
7 // @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com | |
1384 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1940 |
311 | 9 |
10 module dstress.run.abstract_07; | |
11 | |
12 abstract class A{ | |
13 int test(){ | |
14 return 3; | |
15 } | |
16 } | |
17 | |
18 class B : A{ | |
19 } | |
20 | |
21 int main(){ | |
22 A a = new B(); | |
1559 | 23 if(3 != a.test()){ |
24 assert(0); | |
25 } | |
311 | 26 return 0; |
27 } |