summaryrefslogtreecommitdiff
path: root/clang/qa/data/rename-move-from-global.cxx
blob: 1cc2f5d058a6a400dbd59172bdb19c7249c5d39e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class C;

class C {
public:
  C();
  ~C();
  void foo();
  inline C bar();
  inline C& operator += (int x);
};

class D
{
private:
  C m_c;
};

C::C() {}

C::~C() {}

void C::foo() {}

inline C C::bar()
{
  return C();
}

inline C& C::operator +=(int /*x*/)
{
  return *this;
}

int main() {
  C c;
  c.foo();
  return 0;
}