1 //===----------------------------------------------------------------------===//
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: no-exceptions
19 explicit A(int id
) : id_(id
) {count
++;}
20 A(const A
& a
) : id_(a
.id_
) {count
++;}
35 assert(A::count
== 0);
40 assert(A::count
!= 0);
55 assert(A::count
!= 0);
58 assert(A::count
== 0);