fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. class lol {
  4. private:
  5. char lollol[100];
  6. public:
  7. ~lol() {cout << "lel" << endl;}
  8. };
  9.  
  10. lol fuck(){lol lil; return lil;}
  11.  
  12. int main() {
  13. lol lil2=fuck();
  14. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
lel