fork download
  1. struct A {
  2. int* x;
  3. A(): x{new int} {}
  4. ~A(){ delete x; }
  5. };
  6.  
  7. int main()
  8. {
  9. const A a;
  10. *a.x = 3;
  11. }
Success #stdin #stdout 0s 3424KB
stdin
Standard input is empty
stdout
Standard output is empty