fork(1) download
  1. #include <iostream>
  2.  
  3. struct X { X() = default; X(const X&) = delete; ~X() { std::cout << "goodbye\n"; } };
  4.  
  5. int main()
  6. {
  7. auto&& x{X()};
  8. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
goodbye