fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class test {
  5. public:
  6. ~test() {
  7. cout<<"bla";
  8. }
  9. };
  10.  
  11. int main() {
  12. test A;
  13. A.~test();
  14. return 0;
  15. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
blabla