// { dg-do run } #include template const char *print_type (const T &) { return typeid(T).name(); } /* no template */ void pp1 (int) {} template void pp2 (X) {} int main () { if (print_type (&pp1) != print_type (&pp2)) return 1; }