comparison run/struct_12.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/struct_12.d,v 1.1 2004/08/21 23:01:17 th Exp $
2
3 // @author@ Bent Rasmussen <exo@bent-rasmussen.info>
4 // @date@ 2004-06-21
5 // @uri@ news://cb550t$1pon$1@digitaldaemon.com
6
7 int status;
8
9 struct MyStruct{
10 }
11
12 void rec(int i, MyStruct s){
13 if( i > 0 ){
14 status++;
15 rec(i-1, s);
16 }
17 }
18
19 int main(){
20 assert(status==0);
21 MyStruct st;
22 rec(1030, st);
23 assert(status==1030);
24 return 0;
25 }
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40