[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / depr / depr.auto.ptr / auto.ptr / A.h
blob102624dfec385df527c258d8c90cd1dde9428d8c
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef A_H
10 #define A_H
12 #include <cassert>
14 class A
16 int id_;
17 public:
18 explicit A(int id) : id_(id) {++count;}
19 A(const A& a) : id_(a.id_) {++count;}
20 ~A() {assert(id_ >= 0); id_ = -1; --count;}
22 int id() const {return id_;}
24 static int count;
27 int A::count = 0;
29 #endif // A_H