fork download
  1. #include <iostream>
  2.  
  3. struct A {
  4. A() {
  5. std::cout << "A()";
  6. }
  7. void f() {
  8. std::cout << "f";
  9. }
  10. };
  11.  
  12.  
  13. void test(A *a = nullptr) {
  14. a->f();
  15. }
  16.  
  17. int main() {
  18. test();
  19. return 0;
  20. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
f