fork download
  1. #include <iostream>
  2. using namespace std;
  3. class test{
  4. public:
  5. test (int arg){}
  6. test (test&&) noexcept = default;
  7. test (test const&) = delete;
  8. test& operator=(test&&) noexcept = default;
  9. };
  10.  
  11. test maketest(){
  12.  
  13. return test(4);
  14. }
  15.  
  16. int main() {
  17. test t = maketest();
  18. // your code goes here
  19. return 0;
  20. }
Success #stdin #stdout 0s 4456KB
stdin
Standard input is empty
stdout
Standard output is empty