1 // Origin: dgregor@gcc.gnu.org
3 // foo<int>::_S_something was not being emitted.
5 // { dg-do run { xfail *-*-aout *-*-coff *-*-hpux* *-*-hms } }
6 // On targets that don't support weak symbols, we require an explicit
11 static const T _S_something;
15 const T foo<T>::_S_something = T();
19 const int* p = &foo<int>::_S_something;