Debian Codegraph @

gcc/testsuite/g++.dg/template/typeid1.C

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);