1 //===------------------------- unwind_04.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
17 #pragma GCC diagnostic ignored "-Wunreachable-code"
25 ~A() {assert(id_
== count
--);}
29 A
& operator=(const A
&);
39 ~B() {assert(id_
== count
--);}
43 B
& operator=(const B
&);
53 ~C() {assert(id_
== count
--);}
57 C
& operator=(const C
&);
70 void f1() throw (long, char, double)
85 std::set_unexpected(u_handler
);
111 assert(A::count
== 0);
112 assert(B::count
== 0);
113 assert(C::count
== 0);