1 // { dg-additional-options -fmodules-ts } 2 export module inter; 3 // { dg-module-cmi inter } 4 5 import worker; 6 7 namespace hidden { fn(int x)8 export int fn (int x) 9 { 10 return -x; 11 } 12 } 13 14 export template <typename T> TPL(T & t)15 int TPL (T &t) 16 { 17 return fn (t); 18 } 19