Debian Codegraph @

gcc/testsuite/g++.dg/modules/tpl-spec-4_a.C

raw
1 // { dg-additional-options {-fmodules-ts -fdump-lang-module-graph-blocks} }
2
3 export module TPL;
4 // { dg-module-cmi TPL }
5
6 export template <typename T>
7 struct X
8 {
9 T f;
10 };
11
12 template<> struct X<int>
13 {
14 int m;
15 };
16
17 // { dg-final { scan-lang-dump {Dependencies of specialization type_decl:'::X<int>'} module } }
18 // { dg-final { scan-lang-dump {Cluster members:\n( \[.\]=[^\n]*'\n)* \[.\]=specialization definition '::X<int>'} module } }
19 // { dg-final { scan-lang-dump {Pending specialization '::X<int>' entity:[0-9]* section:. keyed to '::X'} module } }