1
2Test #1
3A ctor.  i = 0
4B ctor.  i = 1
5A ctor.  i = 2
6B ctor.  i = 3
7B ctor.  i = 4
8A copy ctor.  i = 5
9B dtor.  i = 4
10B dtor.  i = 3
11Throwing
12B ctor.  i = 6
13B ctor.  i = 7
14A copy ctor.  i = 8
15B dtor.  i = 7
16B dtor.  i = 6
17B ctor.  i = 9
18B ctor.  i = 10
19A copy ctor.  i = 11
20B dtor.  i = 10
21B dtor.  i = 9
22B ctor.  i = 12
23B ctor.  i = 13
24A dtor.  i = 5
25B dtor.  i = 13
26B dtor.  i = 12
27B ctor.  i = 14
28B ctor.  i = 15
29A dtor.  i = 2
30B dtor.  i = 15
31B dtor.  i = 14
32B dtor.  i = 1
33B ctor.  i = 16
34B ctor.  i = 17
35A dtor.  i = 0
36B dtor.  i = 17
37B dtor.  i = 16
38In main's catch
39B ctor.  i = 18
40B ctor.  i = 19
41A dtor.  i = 11
42B dtor.  i = 19
43B dtor.  i = 18
44B ctor.  i = 20
45B ctor.  i = 21
46A dtor.  i = 8
47B dtor.  i = 21
48B dtor.  i = 20
49
50
51Test #2
52A ctor.  i = 0
53B ctor.  i = 1
54A ctor.  i = 2
55A ctor.  i = 3
56B ctor.  i = 4
57B ctor.  i = 5
58A copy ctor.  i = 6
59B dtor.  i = 5
60B dtor.  i = 4
61Throwing
62B ctor.  i = 7
63B ctor.  i = 8
64A copy ctor.  i = 9
65B dtor.  i = 8
66B dtor.  i = 7
67B ctor.  i = 10
68B ctor.  i = 11
69A copy ctor.  i = 12
70B dtor.  i = 11
71B dtor.  i = 10
72B ctor.  i = 13
73B ctor.  i = 14
74A dtor.  i = 6
75B dtor.  i = 14
76B dtor.  i = 13
77B ctor.  i = 15
78B ctor.  i = 16
79A dtor.  i = 3
80B dtor.  i = 16
81B dtor.  i = 15
82B ctor.  i = 17
83B ctor.  i = 18
84A dtor.  i = 2
85B dtor.  i = 18
86B dtor.  i = 17
87In catch;
88A ctor.  i = 19
89Rethrowing
90B ctor.  i = 20
91B ctor.  i = 21
92A dtor.  i = 19
93B dtor.  i = 21
94B dtor.  i = 20
95B ctor.  i = 22
96B ctor.  i = 23
97A dtor.  i = 12
98B dtor.  i = 23
99B dtor.  i = 22
100B ctor.  i = 24
101B ctor.  i = 25
102A copy ctor.  i = 26
103B dtor.  i = 25
104B dtor.  i = 24
105B dtor.  i = 1
106B ctor.  i = 27
107B ctor.  i = 28
108A dtor.  i = 0
109B dtor.  i = 28
110B dtor.  i = 27
111In main's catch
112B ctor.  i = 29
113B ctor.  i = 30
114A dtor.  i = 26
115B dtor.  i = 30
116B dtor.  i = 29
117B ctor.  i = 31
118B ctor.  i = 32
119A dtor.  i = 9
120B dtor.  i = 32
121B dtor.  i = 31
122
123
124Test #3
125A ctor.  i = 0
126B ctor.  i = 1
127A ctor.  i = 2
128A ctor.  i = 3
129B ctor.  i = 4
130B ctor.  i = 5
131A copy ctor.  i = 6
132B dtor.  i = 5
133B dtor.  i = 4
134Throwing
135B ctor.  i = 7
136B ctor.  i = 8
137A copy ctor.  i = 9
138B dtor.  i = 8
139B dtor.  i = 7
140B ctor.  i = 10
141B ctor.  i = 11
142A copy ctor.  i = 12
143B dtor.  i = 11
144B dtor.  i = 10
145B ctor.  i = 13
146B ctor.  i = 14
147A dtor.  i = 6
148B dtor.  i = 14
149B dtor.  i = 13
150B ctor.  i = 15
151B ctor.  i = 16
152A dtor.  i = 3
153B dtor.  i = 16
154B dtor.  i = 15
155B ctor.  i = 17
156B ctor.  i = 18
157A dtor.  i = 2
158B dtor.  i = 18
159B dtor.  i = 17
160In catch
161A ctor.  i = 19
162Throwing new a
163B ctor.  i = 20
164B ctor.  i = 21
165A copy ctor.  i = 22
166B dtor.  i = 21
167B dtor.  i = 20
168B ctor.  i = 23
169B ctor.  i = 24
170A copy ctor.  i = 25
171B dtor.  i = 24
172B dtor.  i = 23
173B ctor.  i = 26
174B ctor.  i = 27
175A dtor.  i = 9
176B dtor.  i = 27
177B dtor.  i = 26
178B ctor.  i = 28
179B ctor.  i = 29
180A dtor.  i = 19
181B dtor.  i = 29
182B dtor.  i = 28
183B ctor.  i = 30
184B ctor.  i = 31
185A dtor.  i = 12
186B dtor.  i = 31
187B dtor.  i = 30
188B dtor.  i = 1
189B ctor.  i = 32
190B ctor.  i = 33
191A dtor.  i = 0
192B dtor.  i = 33
193B dtor.  i = 32
194In main's catch
195B ctor.  i = 34
196B ctor.  i = 35
197A dtor.  i = 25
198B dtor.  i = 35
199B dtor.  i = 34
200B ctor.  i = 36
201B ctor.  i = 37
202A dtor.  i = 22
203B dtor.  i = 37
204B dtor.  i = 36
205
206
207Test #4
208A ctor.  i = 0
209B ctor.  i = 1
210B ctor.  i = 2
211A ctor.  i = 3
212A ctor.  i = 4
213A ctor.  i = 5
214A ctor.  i = 6
215B ctor.  i = 7
216A ctor.  i = 8
217A ctor.  i = 9
218B ctor.  i = 10
219B ctor.  i = 11
220A copy ctor.  i = 12
221B dtor.  i = 11
222B dtor.  i = 10
223Throwing
224B ctor.  i = 13
225B ctor.  i = 14
226A copy ctor.  i = 15
227B dtor.  i = 14
228B dtor.  i = 13
229B ctor.  i = 16
230B ctor.  i = 17
231A copy ctor.  i = 18
232B dtor.  i = 17
233B dtor.  i = 16
234B ctor.  i = 19
235B ctor.  i = 20
236A dtor.  i = 12
237B dtor.  i = 20
238B dtor.  i = 19
239B ctor.  i = 21
240B ctor.  i = 22
241A dtor.  i = 9
242B dtor.  i = 22
243B dtor.  i = 21
244B ctor.  i = 23
245B ctor.  i = 24
246A dtor.  i = 8
247B dtor.  i = 24
248B dtor.  i = 23
249In catch;
250A ctor.  i = 25
251Rethrowing
252B ctor.  i = 26
253B ctor.  i = 27
254A dtor.  i = 25
255B dtor.  i = 27
256B dtor.  i = 26
257B ctor.  i = 28
258B ctor.  i = 29
259A dtor.  i = 18
260B dtor.  i = 29
261B dtor.  i = 28
262B ctor.  i = 30
263B ctor.  i = 31
264A copy ctor.  i = 32
265B dtor.  i = 31
266B dtor.  i = 30
267B dtor.  i = 7
268B ctor.  i = 33
269B ctor.  i = 34
270A dtor.  i = 6
271B dtor.  i = 34
272B dtor.  i = 33
273B ctor.  i = 35
274B ctor.  i = 36
275A dtor.  i = 5
276B dtor.  i = 36
277B dtor.  i = 35
278In catch #1
279B ctor.  i = 37
280Rethrowing
281B dtor.  i = 37
282B ctor.  i = 38
283B ctor.  i = 39
284A dtor.  i = 32
285B dtor.  i = 39
286B dtor.  i = 38
287B ctor.  i = 40
288B ctor.  i = 41
289A dtor.  i = 4
290B dtor.  i = 41
291B dtor.  i = 40
292B ctor.  i = 42
293B ctor.  i = 43
294A dtor.  i = 3
295B dtor.  i = 43
296B dtor.  i = 42
297In catch #2
298A ctor.  i = 44
299Throwing new a
300B ctor.  i = 45
301B ctor.  i = 46
302A copy ctor.  i = 47
303B dtor.  i = 46
304B dtor.  i = 45
305B ctor.  i = 48
306B ctor.  i = 49
307A copy ctor.  i = 50
308B dtor.  i = 49
309B dtor.  i = 48
310B ctor.  i = 51
311B ctor.  i = 52
312A dtor.  i = 15
313B dtor.  i = 52
314B dtor.  i = 51
315B ctor.  i = 53
316B ctor.  i = 54
317A dtor.  i = 44
318B dtor.  i = 54
319B dtor.  i = 53
320B dtor.  i = 2
321In catch #3
322B ctor.  i = 55
323Rethrowing
324B dtor.  i = 55
325B ctor.  i = 56
326B ctor.  i = 57
327A dtor.  i = 50
328B dtor.  i = 57
329B dtor.  i = 56
330B ctor.  i = 58
331B ctor.  i = 59
332A copy ctor.  i = 60
333B dtor.  i = 59
334B dtor.  i = 58
335B dtor.  i = 1
336B ctor.  i = 61
337B ctor.  i = 62
338A dtor.  i = 0
339B dtor.  i = 62
340B dtor.  i = 61
341In main's catch
342B ctor.  i = 63
343B ctor.  i = 64
344A dtor.  i = 60
345B dtor.  i = 64
346B dtor.  i = 63
347B ctor.  i = 65
348B ctor.  i = 66
349A dtor.  i = 47
350B dtor.  i = 66
351B dtor.  i = 65
352
353
354Test #5
355A ctor.  i = 0
356B ctor.  i = 1
357B ctor.  i = 2
358B ctor.  i = 3
359B ctor.  i = 4
360A ctor.  i = 5
361B ctor.  i = 6
362B ctor.  i = 7
363A copy ctor.  i = 8
364B dtor.  i = 7
365B dtor.  i = 6
366Throwing
367B ctor.  i = 9
368B ctor.  i = 10
369A copy ctor.  i = 11
370B dtor.  i = 10
371B dtor.  i = 9
372B ctor.  i = 12
373B ctor.  i = 13
374A copy ctor.  i = 14
375B dtor.  i = 13
376B dtor.  i = 12
377B ctor.  i = 15
378B ctor.  i = 16
379A dtor.  i = 8
380B dtor.  i = 16
381B dtor.  i = 15
382B ctor.  i = 17
383B ctor.  i = 18
384A dtor.  i = 5
385B dtor.  i = 18
386B dtor.  i = 17
387B dtor.  i = 4
388B dtor.  i = 3
389B dtor.  i = 2
390A ctor.  i = 19
391In catch #2
392B ctor.  i = 20
393Throwing a new b
394B copy ctor.  i = 21
395B copy ctor.  i = 22
396B dtor.  i = 20
397B ctor.  i = 23
398B ctor.  i = 24
399A dtor.  i = 11
400B dtor.  i = 24
401B dtor.  i = 23
402B ctor.  i = 25
403B ctor.  i = 26
404A dtor.  i = 19
405B dtor.  i = 26
406B dtor.  i = 25
407B ctor.  i = 27
408B ctor.  i = 28
409A dtor.  i = 14
410B dtor.  i = 28
411B dtor.  i = 27
412B dtor.  i = 1
413In catch #3
414Throwing a new a
415A ctor.  i = 29
416B ctor.  i = 30
417B ctor.  i = 31
418A copy ctor.  i = 32
419B dtor.  i = 31
420B dtor.  i = 30
421B dtor.  i = 21
422B dtor.  i = 22
423B ctor.  i = 33
424B ctor.  i = 34
425A dtor.  i = 0
426B dtor.  i = 34
427B dtor.  i = 33
428In main's catch
429B ctor.  i = 35
430B ctor.  i = 36
431A dtor.  i = 32
432B dtor.  i = 36
433B dtor.  i = 35
434B ctor.  i = 37
435B ctor.  i = 38
436A dtor.  i = 29
437B dtor.  i = 38
438B dtor.  i = 37
439
440
441Test #6
442B ctor.  i = 0
443B ctor.  i = 1
444B ctor.  i = 2
445Throwing a b
446B copy ctor.  i = 3
447B copy ctor.  i = 4
448B dtor.  i = 2
449B ctor.  i = 5
450In catch #1
451Throwing a new b
452B copy ctor.  i = 6
453B copy ctor.  i = 7
454B dtor.  i = 3
455B dtor.  i = 5
456B dtor.  i = 4
457B dtor.  i = 1
458B ctor.  i = 8
459In catch #2
460Throwing a new b
461B copy ctor.  i = 9
462B copy ctor.  i = 10
463B dtor.  i = 6
464B dtor.  i = 8
465B dtor.  i = 7
466B dtor.  i = 0
467A ctor.  i = 11
468In catch #3
469Throwing a new a
470B ctor.  i = 12
471B ctor.  i = 13
472A copy ctor.  i = 14
473B dtor.  i = 13
474B dtor.  i = 12
475B ctor.  i = 15
476B ctor.  i = 16
477A copy ctor.  i = 17
478B dtor.  i = 16
479B dtor.  i = 15
480B dtor.  i = 9
481B ctor.  i = 18
482B ctor.  i = 19
483A dtor.  i = 11
484B dtor.  i = 19
485B dtor.  i = 18
486B dtor.  i = 10
487In main's catch
488B ctor.  i = 20
489B ctor.  i = 21
490A dtor.  i = 17
491B dtor.  i = 21
492B dtor.  i = 20
493B ctor.  i = 22
494B ctor.  i = 23
495A dtor.  i = 14
496B dtor.  i = 23
497B dtor.  i = 22
498
499
500Test #7
501B ctor.  i = 0
502B ctor.  i = 1
503B ctor.  i = 2
504Throwing a b
505B ctor.  i = 3
506B copy ctor.  i = 4
507B dtor.  i = 2
508B ctor.  i = 5
509In catch #1
510B ctor.  i = 6
511Rethrowing b
512B copy ctor.  i = 7
513B dtor.  i = 6
514B ctor.  i = 8
515In catch #1 of catch#1
516Rethrowing b
517B dtor.  i = 8
518B dtor.  i = 7
519B dtor.  i = 5
520B dtor.  i = 4
521B copy ctor.  i = 9
522B dtor.  i = 1
523B ctor.  i = 10
524In catch #2
525Throwing a new A
526A ctor.  i = 11
527B ctor.  i = 12
528B ctor.  i = 13
529A copy ctor.  i = 14
530B dtor.  i = 13
531B dtor.  i = 12
532B dtor.  i = 3
533B dtor.  i = 10
534B dtor.  i = 9
535B dtor.  i = 0
536In main's catch
537B ctor.  i = 15
538B ctor.  i = 16
539A dtor.  i = 14
540B dtor.  i = 16
541B dtor.  i = 15
542B ctor.  i = 17
543B ctor.  i = 18
544A dtor.  i = 11
545B dtor.  i = 18
546B dtor.  i = 17
547
548
549Test #8
550B ctor.  i = 0
551B ctor.  i = 1
552B ctor.  i = 2
553B ctor.  i = 3
554Throwing a b
555B ctor.  i = 4
556B ctor.  i = 5
557B copy ctor.  i = 6
558B dtor.  i = 4
559B dtor.  i = 3
560B ctor.  i = 7
561In catch #1
562B ctor.  i = 8
563Rethrowing b
564A ctor.  i = 9
565Rethrowing
566B copy ctor.  i = 10
567B ctor.  i = 11
568B ctor.  i = 12
569A dtor.  i = 9
570B dtor.  i = 12
571B dtor.  i = 11
572B dtor.  i = 8
573B ctor.  i = 13
574In catch #1 of catch#1
575Rethrowing b
576A ctor.  i = 14
577Rethrowing
578B ctor.  i = 15
579B ctor.  i = 16
580A dtor.  i = 14
581B dtor.  i = 16
582B dtor.  i = 15
583B dtor.  i = 13
584B dtor.  i = 10
585B dtor.  i = 7
586B dtor.  i = 6
587B copy ctor.  i = 17
588B dtor.  i = 2
589B dtor.  i = 1
590B ctor.  i = 18
591In catch #2
592Throwing a new A
593A ctor.  i = 19
594B ctor.  i = 20
595B ctor.  i = 21
596A copy ctor.  i = 22
597B dtor.  i = 21
598B dtor.  i = 20
599B dtor.  i = 5
600B dtor.  i = 18
601B dtor.  i = 17
602B dtor.  i = 0
603In main's catch
604B ctor.  i = 23
605B ctor.  i = 24
606A dtor.  i = 22
607B dtor.  i = 24
608B dtor.  i = 23
609B ctor.  i = 25
610B ctor.  i = 26
611A dtor.  i = 19
612B dtor.  i = 26
613B dtor.  i = 25
614
615
616Test #9
617B ctor.  i = 0
618Throwing B
619B copy ctor.  i = 1
620B dtor.  i = 0
621In catch #1
622Rethrow
623In catch #2
624B dtor.  i = 1
625End of test9, throwing a A
626A ctor.  i = 2
627B ctor.  i = 3
628B ctor.  i = 4
629A copy ctor.  i = 5
630B dtor.  i = 4
631B dtor.  i = 3
632In main's catch
633B ctor.  i = 6
634B ctor.  i = 7
635A dtor.  i = 5
636B dtor.  i = 7
637B dtor.  i = 6
638B ctor.  i = 8
639B ctor.  i = 9
640A dtor.  i = 2
641B dtor.  i = 9
642B dtor.  i = 8
643
644
645Test #10
646B ctor.  i = 0
647Throwing B
648B copy ctor.  i = 1
649B dtor.  i = 0
650In catch #1
651Throwing a new B()
652B ctor.  i = 2
653In catch #2
654B dtor.  i = 2
655B dtor.  i = 1
656End of test10, throwing a A
657A ctor.  i = 3
658B ctor.  i = 4
659B ctor.  i = 5
660A copy ctor.  i = 6
661B dtor.  i = 5
662B dtor.  i = 4
663In main's catch
664B ctor.  i = 7
665B ctor.  i = 8
666A dtor.  i = 6
667B dtor.  i = 8
668B dtor.  i = 7
669B ctor.  i = 9
670B ctor.  i = 10
671A dtor.  i = 3
672B dtor.  i = 10
673B dtor.  i = 9
674
675
676Passed
677