blob: f538304f4a3b09191257252ff580ae2c2dd0c915 [file] [log] [blame]
// { dg-module-do run }
// { dg-additional-options -fmodules-ts }
export module frob;
// { dg-module-cmi frob }
export template<typename T> T sum (T a)
{
return a;
}
export template<typename T, typename... R>
inline T sum (T a, R... b)
{
return a + static_cast<T> (sum (b...));
}
export inline int add (int a, int b, int c)
{
return sum (a, b, c);
}