Debian Codegraph @

gcc/testsuite/g++.dg/modules/tpl-spec-3_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 struct frob
7 {
8 int i;
9
10 template<typename T> void store (T i_)
11 {
12 i = int (i_);
13 }
14 };
15
16 // Not inline!
17 template <> void frob::store (int i_)
18 {
19 i = -i_;
20 }
21
22 // { dg-final { scan-lang-dump {Dependencies of specialization function_decl:'::frob::store<int>'} module } }
23 // { dg-final { scan-lang-dump-not {Depending definition function_decl:'::frob::store<int>'} module } }
24 // { dg-final { scan-lang-dump {Cluster members:\n \[0\]=specialization declaration '::frob::store<int>'} module } }
25 // { dg-final { scan-lang-dump {Pending specialization '::frob::store<int>' entity:[0-9]* section:. keyed to '::frob'} module } }
26
27 // { dg-final { scan-assembler {_ZNW3TPL4frob5storeIiEEvT_:} } }