repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
rtti
/
typeid2.C
blob
0dbcc598b9d34cab57ac2324f83270c49f50b187
1
// { dg-do run }
2
3
#include <typeinfo>
4
5
template <typename T> const char *print_type (const T &) {
6
return typeid(T).name();
7
}
8
9
/* no template */ void pp1 (int) {}
10
template <typename X> void pp2 (X) {}
11
12
int main () {
13
if (print_type (&pp1) != print_type (&pp2<int>))
14
return 1;
15
}