Home
last modified time | relevance | path

Searched defs:CountCopyAndMove (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DDenseSetTest.cpp150 struct CountCopyAndMove { struct
151 static int Move;
152 static int Copy;
153 int Value;
154 CountCopyAndMove(int Value) : Value(Value) {} in CountCopyAndMove() function
156 CountCopyAndMove(const CountCopyAndMove &RHS) { in CountCopyAndMove() argument
160 CountCopyAndMove &operator=(const CountCopyAndMove &RHS) { in operator =()
165 CountCopyAndMove(CountCopyAndMove &&RHS) { in CountCopyAndMove() argument
169 CountCopyAndMove &operator=(const CountCopyAndMove &&RHS) { in operator =()
H A DDenseMapTest.cpp334 struct CountCopyAndMove { struct
335 static int Move;
336 static int Copy;
337 CountCopyAndMove() {} in CountCopyAndMove() argument
339 CountCopyAndMove(const CountCopyAndMove &) { Copy++; } in CountCopyAndMove() function
340 CountCopyAndMove &operator=(const CountCopyAndMove &) { in operator =()
344 CountCopyAndMove(CountCopyAndMove &&) { Move++; } in CountCopyAndMove() argument
345 CountCopyAndMove &operator=(const CountCopyAndMove &&) { in operator =()
H A DStringMapTest.cpp83 struct CountCopyAndMove { struct
85 CountCopyAndMove(const CountCopyAndMove &) { copy = 1; } in CountCopyAndMove() function
86 CountCopyAndMove(CountCopyAndMove &&) { move = 1; } in CountCopyAndMove() argument
87 void operator=(const CountCopyAndMove &) { ++copy; } in operator =()
88 void operator=(CountCopyAndMove &&) { ++move; } in operator =()
89 int copy = 0;
90 int move = 0;
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_dense_map_test.cpp327 struct CountCopyAndMove { struct
328 static int Move;
329 static int Copy;
330 CountCopyAndMove() {} in CountCopyAndMove() argument
332 CountCopyAndMove(const CountCopyAndMove &) { Copy++; } in CountCopyAndMove() function
333 CountCopyAndMove &operator=(const CountCopyAndMove &) { in operator =()
337 CountCopyAndMove(CountCopyAndMove &&) { Move++; } in CountCopyAndMove() function
338 CountCopyAndMove &operator=(const CountCopyAndMove &&) { in operator =()