Bug 1846030 [wpt PR 41229] - CloseWatcher: factor out and expand Esc key tests, a...
[gecko.git] / tools / clang-tidy / test / performance-move-const-arg.cpp
blob39f1ce06ec671576e862eaaf5e18a7a667c1f8cf
1 namespace std {
2 template <typename _Tp>
3 struct remove_reference {
4 typedef _Tp type;
5 };
7 template <typename _Tp>
8 constexpr typename std::remove_reference<_Tp>::type &&move(_Tp &&__t) {
9 return static_cast<typename std::remove_reference<_Tp>::type &&>(__t);
11 } // namespace std
13 struct TriviallyCopyable {
14 int i;
17 class A {
18 public:
19 A() {}
20 A(const A &rhs) {}
21 A(A &&rhs) {}
24 void f(TriviallyCopyable) {}
26 void g() {
27 TriviallyCopyable obj;
28 f(std::move(obj));
31 A f5(const A x5) {
32 return std::move(x5);