fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class foo {};
  5. class bar {};
  6.  
  7. bar func() {}
  8.  
  9. int main() {
  10. foo a(bar());
  11. a(func);
  12. }
  13.  
  14. foo a(bar (*) ())
  15. {
  16. cout << "Hallo!";
  17. }
  18.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
Hallo!