Lines Matching refs:N0
20 namespace N0 { namespace
35 template<> void N0::f0(int) { } // okay in f0()
38 template<> void N0::f0(long) { } // expected-error{{does not enclose namespace}} in f0()
41 template<> void N0::f0(double) { } in f0()
50 namespace N0 { namespace
74 void N0::X0<T>::ft1(T t, U u) { in ft1()
78 template<typename T> T N0::X0<T>::member;
80 template<> struct N0::X0<void> { };
81 N0::X0<void> test_X0;
84 …template<> struct N0::X0<const void> { }; // expected-error{{class template specialization of 'X0'…
87 namespace N0 { namespace
91 template<> struct N0::X0<volatile void> {
96 namespace N0 { namespace
103 using N0::v0;
111 template<> int N0::v0<int[1]>;
116 template<> int N0::v0<char[1]>;
122 template<> int N0::v0<int[5]>; // expected-error {{must originally be declared in namespace 'N0'}} …
127 template<> int N0::v0<char[5]>; // expected-error {{does not enclose namespace 'N0'}}
134 template<> void N0::X0<void*>::f1(void *) { } in f1()
136 void test_spec(N0::X0<void*> xvp, void *vp) { in test_spec()
140 namespace N0 { namespace
146 void test_x0_cvvoid(N0::X0<const volatile void*> x0, const volatile void *cvp) { in test_x0_cvvoid()
151 namespace N0 { namespace
164 return N0::X0<NonDefaultConstructible>::member; in get_static_member()
167 template<> int N0::X0<int>::member;
169 template<> float N0::X0<float>::member = 3.14f;
172 template<> double N0::X0<double>::member = 3.14; // expected-error{{does not enclose namespace}}
176 namespace N0 { namespace
195 struct N0::X0<long>::Inner { };
198 struct N0::X0<float>::Inner { };
202 struct N0::X0<unsigned>::Inner { }; // expected-error{{member class specialization}}
205 struct N0::X0<unsigned long>::Inner { }; // expected-error{{member class specialization}}
208 N0::X0<void*>::Inner inner0;
209 N0::X0<int>::Inner inner1;
210 N0::X0<long>::Inner inner2;
211 N0::X0<float>::Inner inner3;
212 N0::X0<double>::Inner inner4; // expected-error{{incomplete}}
215 namespace N0 { namespace
231 struct N0::X0<int>::InnerTemplate<long> { }; // okay
234 struct N0::X0<int>::InnerTemplate<float> { };
238 struct N0::X0<int>::InnerTemplate<double> { }; // expected-error{{enclosing}}
241 N0::X0<void*>::InnerTemplate<int> inner_template0;
242 N0::X0<int>::InnerTemplate<int> inner_template1; // expected-error{{incomplete}}
243 N0::X0<int>::InnerTemplate<long> inner_template2;
244 N0::X0<int>::InnerTemplate<unsigned long> inner_template3; // expected-note{{instantiation}}
247 namespace N0 { namespace
263 void N0::X0<void*>::ft1(void *, unsigned) { } // okay in ft1()
266 void N0::X0<void*>::ft1(void *, float) { } in ft1()
270 void N0::X0<void*>::ft1(void *, long) { } // expected-error{{does not enclose namespace}} in ft1()
274 void test_func_template(N0::X0<void *> xvp, void *vp, const void *cvp, in test_func_template()