* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / extern_template-4.C
blob9f0c7d720ab66823569d5388301eb945c834de4b
1 // PR c++/85470
2 // { dg-do compile { target c++11 } }
4 template <class T>
5 struct StaticObject
7     static T& create()
8     {
9       static T t;
10       return t;
11     }
13     static T & instance;
16 template <class T> T & StaticObject<T>::instance = StaticObject<T>::create();
18 extern template class StaticObject<int>;
20 void test()
22     StaticObject<int>::instance;