summaryrefslogtreecommitdiffhomepage
path: root/CompilerDriver/cc2/regression-tests/pure2-bugfix-for-memberwise-base-assignment.cpp2
blob: 9b95fae2ce7e9d21987f6d7ab8abf97188c7fe1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Base: type = {
  operator=: (out this) = { }
  operator=: (out this, that)       = std::cout << "(out this, that)\n";
  operator=: (implicit out this, _) = std::cout << "(implicit out this, _)\n";
}

Derived: type = {
  this: Base            = ();
  operator=: (out this) = { }
  operator=: (out this, that)   = { }
  operator=: (inout this, move that) = { }
}

main: () = {
  d  := Derived();
  d2 := d;
  d2 = d;
}