799
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Sean Kelly <sean@f4.ca>
|
|
6 // @date@ 2006-01-24
|
|
7 // @uri@ news:dr5uqg$2hn7$1@digitaldaemon.com
|
|
8
|
|
9 module dstress.run.a.auto_14_B;
|
|
10
|
|
11 bool hadDtor = false;
|
|
12
|
|
13 class MyClass{
|
|
14 this(){
|
|
15 throw new Exception("dummy");
|
|
16 }
|
|
17
|
|
18 ~this(){
|
|
19 hadDtor = true;
|
|
20 throw new Exception("should never throw");
|
|
21 }
|
|
22 }
|
|
23
|
|
24 int main(){
|
|
25
|
|
26 try{
|
|
27 auto MyClass c;
|
|
28 c = new MyClass();
|
|
29 }catch{
|
|
30 if(!hadDtor){
|
|
31 return 0;
|
|
32 }else{
|
|
33 assert(0);
|
|
34 }
|
|
35 }
|
|
36
|
|
37 assert(0);
|
|
38 }
|