annotate run/interface_10.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 52c9e86b6486
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
209
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
1 // $HeadURL$
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
2 // $Date$
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
3 // $Author$
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
4
360
e38919011244 dif. fixes 3
thomask
parents: 209
diff changeset
5 // @author@ Miguel Ferreira Simões <Kobold@netcabo.pt>
209
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
6 // @date@ 2004-12-23
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
7 // @uri@ news:cqe7j0$2fl3$1@digitaldaemon.com
1383
52c9e86b6486 @url@ -> @uri@
thomask
parents: 360
diff changeset
8 // @uri@ nntp://digitalmars.com/digitalmars.D/14003
209
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
9
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
10 module dstress.run.interface_10;
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
11
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
12 interface ITest{
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
13 static int dummy();
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
14 }
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
15
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
16 class Test : ITest{
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
17 static int dummy(){
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
18 return 5;
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
19 }
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
20 }
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
21
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
22 int main(){
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
23 Test t = new Test();
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
24 assert(t.dummy()==5);
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
25 return 0;
e636fe6f12d6 static functions in interfaces
thomask
parents:
diff changeset
26 }