Lines Matching defs:CountCopyAndMove
1 //===- llvm/unittest/ADT/CountCopyAndMove.h - Optional unit tests ---------===//
14 struct CountCopyAndMove {
24 CountCopyAndMove() { ++DefaultConstructions; }
25 explicit CountCopyAndMove(int val) : val(val) { ++ValueConstructions; }
26 CountCopyAndMove(const CountCopyAndMove &other) : val(other.val) {
29 CountCopyAndMove &operator=(const CountCopyAndMove &other) {
34 CountCopyAndMove(CountCopyAndMove &&other) : val(other.val) {
37 CountCopyAndMove &operator=(CountCopyAndMove &&other) {
42 ~CountCopyAndMove() { ++Destructions; }