Lines Matching refs:N0
18 namespace N0 { namespace
33 template<> void N0::f0(int) { } // okay in f0()
36 template<> void N0::f0(long) { } // expected-error{{does not enclose namespace}} in f0()
39 template<> void N0::f0(double); // expected-warning{{C++11 extension}}
40 template<> void N0::f0(double) { } in f0()
49 namespace N0 { namespace
73 void N0::X0<T>::ft1(T t, U u) { in ft1()
77 template<typename T> T N0::X0<T>::member;
79 template<> struct N0::X0<void> { }; // expected-warning{{C++11 extension}}
80 N0::X0<void> test_X0;
83 template<> struct N0::X0<const void> { }; // expected-error{{not in a namespace enclosing 'N0'}}
86 namespace N0 { namespace
90 template<> struct N0::X0<volatile void> {
95 template<> void N0::X0<void*>::f1(void *) { } // expected-warning{{member function specialization}} in f1()
97 void test_spec(N0::X0<void*> xvp, void *vp) { in test_spec()
101 namespace N0 { namespace
107 void test_x0_cvvoid(N0::X0<const volatile void*> x0, const volatile void *cvp) { in test_x0_cvvoid()
112 namespace N0 { namespace
125 return N0::X0<NonDefaultConstructible>::member; in get_static_member()
128 template<> int N0::X0<int>::member; // expected-warning{{C++11 extension}}
130 template<> float N0::X0<float>::member = 3.14f;
133 template<> double N0::X0<double>::member = 3.14; // expected-error{{does not enclose namespace}}
137 namespace N0 { namespace
156 struct N0::X0<long>::Inner { }; // expected-warning{{C++11 extension}}
159 struct N0::X0<float>::Inner { };
163 struct N0::X0<unsigned>::Inner { }; // expected-error{{member class specialization}}
166 struct N0::X0<unsigned long>::Inner { }; // expected-error{{member class specialization}}
169 N0::X0<void*>::Inner inner0;
170 N0::X0<int>::Inner inner1;
171 N0::X0<long>::Inner inner2;
172 N0::X0<float>::Inner inner3;
173 N0::X0<double>::Inner inner4; // expected-error{{incomplete}}
176 namespace N0 { namespace
192 struct N0::X0<int>::InnerTemplate<long> { }; // okay
195 struct N0::X0<int>::InnerTemplate<float> { }; // expected-warning{{class template specialization}}
199 struct N0::X0<int>::InnerTemplate<double> { }; // expected-error{{enclosing}}
202 N0::X0<void*>::InnerTemplate<int> inner_template0;
203 N0::X0<int>::InnerTemplate<int> inner_template1; // expected-error{{incomplete}}
204 N0::X0<int>::InnerTemplate<long> inner_template2;
205 N0::X0<int>::InnerTemplate<unsigned long> inner_template3; // expected-note{{instantiation}}
208 namespace N0 { namespace
224 void N0::X0<void*>::ft1(void *, unsigned) { } // okay in ft1()
227 void N0::X0<void*>::ft1(void *, float) { } // expected-warning{{function template specialization}} in ft1()
231 void N0::X0<void*>::ft1(void *, long) { } // expected-error{{does not enclose namespace}} in ft1()
235 void test_func_template(N0::X0<void *> xvp, void *vp, const void *cvp, in test_func_template()