1 //===------------------------- unwind_02.cpp ------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: libcxxabi-no-exceptions
10 // REQUIRES: c++98 || c++03 || c++11 || c++14
15 #pragma GCC diagnostic ignored "-Wunreachable-code"
23 ~A() {assert(id_
== count
--);}
27 A
& operator=(const A
&);
37 ~B() {assert(id_
== count
--);}
41 B
& operator=(const B
&);
51 ~C() {assert(id_
== count
--);}
55 C
& operator=(const C
&);
68 void f1() throw (long, char, int, double)
99 assert(A::count
== 0);
100 assert(B::count
== 0);
101 assert(C::count
== 0);