annotate run/r/ref_01_A.d @ 1517:cf7719e0ef1b

updated to DMD-1.013
author thomask
date Fri, 27 Apr 2007 17:21:32 +0000
parents
children 01c289574a6d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1517
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
1 // $HeadURL$
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
2 // $Date$
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
3 // $Author$
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
4
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
5 module dstress.run.r.ref_01_A;
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
6
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
7 void test(ref int i){
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
8 i++;
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
9 }
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
10
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
11 int main(){
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
12 int i = 2;
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
13 test(i);
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
14 if(3 != i){
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
15 assert(0);
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
16 }
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
17
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
18 return 0;
cf7719e0ef1b updated to DMD-1.013
thomask
parents:
diff changeset
19 }