summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/performance-move-constructor-init.cpp
blob: 243b399e950514d86cb5c254cd20d9acdbc5b51b (plain)
1
2
3
4
5
6
7
8
9
10
11
struct B {
  B() {}
  B(const B&) {}
  B(B &&) {}
};

struct D : B {
  D() : B() {}
  D(const D &RHS) : B(RHS) {}
  D(D &&RHS) : B(RHS) {}
};