fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<typename T>
  5. void adl(T)
  6. {
  7. cout << "T";
  8. }
  9.  
  10. struct S
  11. {
  12. };
  13.  
  14. template<typename T>
  15. void call_adl(T t)
  16. {
  17. adl(S());
  18. adl(t);
  19. }
  20.  
  21. void adl(S)
  22. {
  23. cout << "S";
  24. }
  25.  
  26. int main()
  27. {
  28. call_adl(S());
  29. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
TS