annotate run/s/static_37_G.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 f4ba482f309c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1135
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
1 // $HeadURL$
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
2 // $Date$
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
3 // $Author$
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
4
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
5 // @author@ Carlos Santander <csantander619@gmail.com>
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
6 // @date@ 2006-07-09
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
7 // @uri@ news:e8sdrv$2k9c$1@digitaldaemon.com
1379
f4ba482f309c added bugzilla uri
thomask
parents: 1135
diff changeset
8 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=660
1135
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
9 // @desc@ name resolution and static function
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
10
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
11 module dstress.run.s.static_37_G;
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
12
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
13 class A{
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
14 private static int foo (int i){
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
15 return i + 1;
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
16 }
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
17 }
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
18
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
19 class B{
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
20 int foo (int x){
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
21 return A.foo(x) * 2;
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
22 }
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
23 }
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
24
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
25 int main(){
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
26 B b = new B();
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
27
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
28 if(b.foo(2) != 6){
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
29 assert(0);
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
30 }
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
31
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
32 return 0;
2b58889c7d7e name resolution and static function
thomask
parents:
diff changeset
33 }