fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <class T>
  5. void f(T t)
  6. {
  7. cout << __PRETTY_FUNCTION__ << endl;
  8. }
  9.  
  10. int main() {
  11. decltype(void())* ptr;
  12. f(ptr);
  13. return 0;
  14. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
void f(T) [with T = void*]