☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
typeid1.C
☽
☼
gcc/testsuite/g++.dg/template/typeid1.C
code
plain
raw
1
// PR c++/55878
2
3
#include <typeinfo>
4
5
struct S;
6
7
template <typename T>
8
static bool fn (S *s)
9
{
10
return typeid (*s) == typeid (T);
11
}
12
13
struct S
14
{
15
};
16
17
bool x = fn<S> (__null);