URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [rtti/] [typeid2.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
#include <typeinfo>
template <typename T> const char *print_type (const T &) {
return typeid(T).name();
}
/* no template */ void pp1 (int) {}
template <typename X> void pp2 (X) {}
int main () {
if (print_type (&pp1) != print_type (&pp2<int>))
return 1;
}
Go to most recent revision | Compare with Previous | Blame | View Log