URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do run }
|
// { dg-do run }
|
|
|
#include
|
#include
|
|
|
template const char *print_type (const T &) {
|
template const char *print_type (const T &) {
|
return typeid(T).name();
|
return typeid(T).name();
|
}
|
}
|
|
|
/* no template */ void pp1 (int) {}
|
/* no template */ void pp1 (int) {}
|
template void pp2 (X) {}
|
template void pp2 (X) {}
|
|
|
int main () {
|
int main () {
|
if (print_type (&pp1) != print_type (&pp2))
|
if (print_type (&pp1) != print_type (&pp2))
|
return 1;
|
return 1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.