8 lines · cpp
1namespace {2template <typename T1, typename T2> struct Temp { int x; };3// This emits the 'Temp' template from this TU.4Temp<int, float> Template2;5} // namespace6 7int other() { return Template2.x; }8 1namespace {2template <typename T1, typename T2> struct Temp { int x; };3// This emits the 'Temp' template from this TU.4Temp<int, float> Template2;5} // namespace6 7int other() { return Template2.x; }8