Debian Codegraph @

gcc/testsuite/g++.dg/modules/inst-5_a.H

raw
1 // { dg-additional-options -fmodule-header }
2 // { dg-module-cmi {} }
3
4 template <int I> int fn ()
5 {
6 return I;
7 }
8
9 inline void g ()
10 {
11 fn<1> (); // instantiation gets emitted
12 }