Mercurial > projects > dstress
annotate run/auto_03.d @ 140:a33ad7189d21
1) news:// -> news:
2) nttp://.../...:... -> nntp://.../.../...
3) added missing mime types
4) added line ending styles
5) added missing keywords
author | thomask |
---|---|
date | Tue, 16 Nov 2004 16:00:10 +0000 |
parents | 5f98d4a33d49 |
children | c67acdbaf88e |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
0 | 5 // @author@ Sean Kelly <sean@f4.ca> |
6 // @date@ 2004-09-11 | |
140 | 7 // @uri@ news:chtj6t$24bm$1@digitaldaemon.com |
8 // @url@ nntp://digitalmars.com/digitalmars.D.bugs/1821 | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
9 |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
10 module dstress.run.auto_03; |
0 | 11 |
12 int status; | |
13 | |
14 auto class AutoClass{ | |
15 ~this(){ | |
16 assert(status==0); | |
17 status--; | |
18 throw new Exception("error msg"); | |
19 } | |
20 } | |
21 | |
22 void test(){ | |
23 assert(status==0); | |
24 auto AutoClass ac = new AutoClass(); | |
25 } | |
26 | |
27 int main(){ | |
28 try{ | |
29 test(); | |
30 }catch{ | |
31 } | |
32 assert(status==-1); | |
33 return 0; | |
34 } |