annotate run/o/opIn_01_B.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 902d2c168029
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1045
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
1 // $HeadURL$
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
2 // $Date$
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
3 // $Author$
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
4
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
5 module dstress.run.o.opIn_01_B;
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
6
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
7 class S{
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
8 int x;
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 1045
diff changeset
9
1045
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
10 int opIn(int i){
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
11 return i + x;
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
12 }
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
13 }
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
14
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
15 int main(){
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
16 S s = new S();
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
17 s.x = 3;
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 1045
diff changeset
18
1380
902d2c168029 updates for DMD-1.007
thomask
parents: 1091
diff changeset
19 if((s in 5) != 8){
1045
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
20 assert(0);
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
21 }
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
22
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
23 return 0;
b020c416b514 added tests for DMD-0.160's new features
thomask
parents:
diff changeset
24 }