fork(2) download
  1. class A {
  2. public:
  3. A() = default;
  4. A(const A&) = delete;
  5. A(A&&) = default;
  6. //A& operator=(A&&) = default;
  7. };
  8.  
  9. A fun() {
  10. return A();
  11. };
  12.  
  13. int main() {
  14. A a = fun();
  15. };
Success #stdin #stdout 0s 3452KB
stdin
Standard input is empty
stdout
Standard output is empty