Mercurial > projects > dstress
annotate run/auto_01.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | 6e4063f99377 |
children |
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 |
1487 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=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_01; |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
11 |
0 | 12 auto class AutoClass{ |
13 this(){ | |
14 throw new Exception("error msg"); | |
15 } | |
16 ~this(){ | |
756 | 17 throw new Exception("should never throw"); |
0 | 18 } |
19 } | |
20 | |
21 int main(){ | |
22 try{ | |
23 auto AutoClass ac = new AutoClass(); | |
24 }catch{ | |
516 | 25 return 0; |
0 | 26 } |
697 | 27 assert(0); |
0 | 28 } |