Debian Codegraph @

gcc/testsuite/g++.dg/modules/extern-tpl-4_a.H

raw
1 // { dg-additional-options "-fmodule-header" }
2 // { dg-module-cmi {} }
3
4 template <typename T> inline void ha() {}
5 extern template void ha<int>();
6 extern template void ha<bool>();
7 template void ha<char>();
8
9 template <typename T> void hb() {}
10 extern template void hb<int>();
11 extern template void hb<bool>();
12 template void hb<char>();
13
14 template <typename T> inline int hc = 123;
15 extern template int hc<int>;
16 extern template int hc<bool>;
17 template int hc<char>;
18
19 template <typename T> int hd = 123;
20 extern template int hd<int>;
21 extern template int hd<bool>;
22 template int hd<char>;