Mercurial > projects > dstress
annotate run/for_02.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
0 | 4 |
5 // @author@ Mike Swieton <mike@swieton.net> | |
6 // @date@ 2004-05-27 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=296 |
0 | 8 |
374 | 9 module dstress.run.for_02; |
10 | |
0 | 11 int main(){ |
12 int status=1; | |
13 assert(status==1); | |
14 for(;;){ | |
15 status++; | |
16 if(status==3){ | |
17 break; | |
18 } | |
19 } | |
20 assert(status==3); | |
21 return 0; | |
22 } |