annotate run/a/auto_14_B.d @ 1089:03b5056496f1

pre DMD-0.163 review
author thomask
date Wed, 19 Jul 2006 21:00:13 +0000
parents c67acdbaf88e
children 902d2c168029
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
799
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
1 // $HeadURL$
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
2 // $Date$
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
3 // $Author$
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
4
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
5 // @author@ Sean Kelly <sean@f4.ca>
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
6 // @date@ 2006-01-24
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
7 // @uri@ news:dr5uqg$2hn7$1@digitaldaemon.com
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
8
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
9 module dstress.run.a.auto_14_B;
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
10
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
11 bool hadDtor = false;
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
12
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
13 class MyClass{
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
14 this(){
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
15 throw new Exception("dummy");
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
16 }
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
17
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
18 ~this(){
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
19 hadDtor = true;
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
20 throw new Exception("should never throw");
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
21 }
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
22 }
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
23
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
24 int main(){
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
25
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
26 try{
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
27 auto MyClass c;
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
28 c = new MyClass();
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
29 }catch{
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
30 if(!hadDtor){
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
31 return 0;
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
32 }else{
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
33 assert(0);
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
34 }
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
35 }
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
36
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
37 assert(0);
c67acdbaf88e Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
38 }