fork(2) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class Proof {
  6. public:
  7. Proof() {
  8. cout << "instance created\n";
  9. }
  10.  
  11. Proof(Proof & p) {
  12. cout << "copy-cnstr\n";
  13. }
  14.  
  15. Proof(Proof && p) {
  16. cout << "move-cnstr\n";
  17. }
  18. };
  19.  
  20. int main() {
  21. auto kek = Proof();
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
instance created