1 //===------------------------- unwind_02.cpp ------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
17 ~A() {assert(id_
== count
--);}
21 A
& operator=(const A
&);
31 ~B() {assert(id_
== count
--);}
35 B
& operator=(const B
&);
45 ~C() {assert(id_
== count
--);}
49 C
& operator=(const C
&);
62 void f1() throw (long, char, int, double)
93 assert(A::count
== 0);
94 assert(B::count
== 0);
95 assert(C::count
== 0);