summaryrefslogtreecommitdiff
path: root/clang/qa/data/rename-move-from-global.cxx.expected
blob: 36b56e61cc6b11ed38e84b72506b4c05250b0c6d (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
39
40
41
42
43
44
namespace ns
{
class C;
}

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

class D
{
private:
  ns::C m_c;
};

ns::C::C() {}

ns::C::~C() {}

void ns::C::foo() {}

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

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

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