fork download
  1. #include <iostream>
  2. #include <alloca.h>
  3.  
  4. using namespace std;
  5.  
  6. struct joe
  7. {
  8. joe ()
  9. {
  10. std::cout << "An instance of joe was allocated at " << this << std::endl;
  11. }
  12. };
  13.  
  14. int main() {
  15. joe *j = (joe *)alloca(sizeof(joe));
  16. return 0;
  17. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty