fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<class T> void bar(T t) { foo(t); }
  5.  
  6. struct F {};
  7.  
  8. int main() {
  9. F f;
  10. bar(f);
  11. return 0;
  12. }
  13.  
  14. void foo(F) { cout << "foo(F)"; }
  15.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
foo(F)