comparison run/out_06.d @ 0:3269e4627918

init dstress
author svnowner
date Sat, 25 Sep 2004 22:33:30 +0000
parents
children 3414705c41ac
comparison
equal deleted inserted replaced
-1:000000000000 0:3269e4627918
1 // $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/out_06.d,v 1.2 2004/09/23 11:16:54 th Exp $
2
3 int status;
4
5 class MyClass{
6 int x=2;
7 }
8
9 void check(out MyClass c){
10 c = new MyClass();
11 }
12
13 int main(){
14 MyClass c = new MyClass();
15 c.x=1;
16 assert(c.x==1);
17 check(c);
18 assert(c.x==2);
19 return 0;
20 }