Home | History | Annotate | Download | only in drs

Lines Matching defs:Void

6   namespace X { extern "C" void dr1_f(int a = 1); }
7 namespace Y { extern "C" void dr1_f(int a = 2); }
9 void g() {
16 void h() {
24 void z(int);
26 void X::z(int = 1) {} // expected-note {{previous}}
28 void z(int = 2); // expected-error {{redefinition of default argument}}
34 template<typename T> void f(T) { A<T> a; } // expected-note {{implicit instantiation}}
35 template void f(int);
41 static void dr4_f(int) {}
42 static void dr4_f(float) {}
43 void dr4_g(int) {} // expected-note {{previous}}
44 void dr4_g(float) {} // expected-error {{conflicting types}}
90 void f();
91 template<typename, int, void (A::*)()> struct T;
135 void g() {
166 template<typename T> void f(int); // expected-note {{previous}}
167 template<typename T> void f(int = 0); // expected-error {{default arguments cannot be added}}
172 void f(); // expected-note {{here}}
177 void g() {
198 typedef void Void;
199 void f(Void); // expected-error {{empty parameter list defined with a typedef of 'void'}}
241 template<typename T> void f(T, T); // expected-note {{candidate}}
242 template<typename T> void f(T, int); // expected-note {{candidate}}
243 void g() { f(0, 0); } // expected-error {{ambiguous}}
250 void f() throw(int);
252 void (A::*f)() throw (int);
253 void (A::*g)() throw () = f; // expected-error {{is not superset of source}}
254 void (A::*g2)() throw () = 0;
255 void (A::*h)() throw (int, char) = f;
256 void (A::*i)() throw () = &A::f; // expected-error {{is not superset of source}}
257 void (A::*i2)() throw () = 0;
258 void (A::*j)() throw (int, char) = &A::f;
259 void x() {
284 void dr29_f0(); // expected-note {{here}}
285 void g0() { void dr29_f0(); }
286 extern "C++" void g0_cxx() { void dr29_f0(); }
287 extern "C" void g0_c() { void dr29_f0(); } // expected-error {{different language linkage}}
289 extern "C" void dr29_f1(); // expected-note {{here}}
290 void g1() { void dr29_f1(); }
291 extern "C" void g1_c() { void dr29_f1(); }
292 extern "C++" void g1_cxx() { void dr29_f1(); } // expected-error {{different language linkage}}
295 void g2() { void dr29_f2(); }
296 extern "C" void dr29_f2();
299 extern "C" void g3() { void dr29_f3(); }
300 extern "C++" void dr29_f3();
303 extern "C++" void g4() { void dr29_f4(); }
304 extern "C" void dr29_f4();
306 extern "C" void g5();
307 extern "C++" void dr29_f5();
308 void g5() {
309 void dr29_f5(); // ok, g5 is extern "C" but we're not inside the linkage-specification here.
312 extern "C++" void g6();
313 extern "C" void dr29_f6();
314 void g6() {
315 void dr29_f6(); // ok, g6 is extern "C" but we're not inside the linkage-specification here.
318 extern "C" void g7();
319 extern "C++" void dr29_f7(); // expected-note {{here}}
320 extern "C" void g7() {
321 void dr29_f7(); // expected-error {{different language linkage}}
324 extern "C++" void g8();
325 extern "C" void dr29_f8(); // expected-note {{here}}
326 extern "C++" void g8() {
327 void dr29_f8(); // expected-error {{different language linkage}}
349 void operator delete(void*); // expected-note {{here}}
359 namespace X { struct S; void f(void (*)(S)); } // expected-note {{candidate}}
360 namespace Y { struct T; void f(void (*)(T)); } // expected-note {{candidate}}
361 void g(X::S);
363 void h() { f(&g); } // expected-error {{ambiguous}}
452 template<int> void f();
453 template<> void f<0>(); // expected-error {{explicit specialization of 'f' in class scope}}
472 friend void f() { T t; }
480 void f();
485 void g() { f(); }
644 void f(int &);
652 static void f();
655 static void f();
656 static void f(int);
660 void (*p)() = &x.f;
661 void (*q)() = &y.f; // expected-error {{cannot create a non-constant pointer to member function}}
662 void (*r)() = y.f; // expected-error {{cannot create a non-constant pointer to member function}}
701 void f() {
707 X<void (*)(NoLinkage A::*)> c;
723 void *q = p;
727 template<class T> void f(T);
728 template<class T> void f(T*);
729 template<> void f(int*);
730 template<> void f<int>(int*);
731 template<> void f(int);
779 template<typename T> static void f() {}
781 inline void g() { f<int>(); }
783 extern template void f<char>();
787 template<void(*)()> struct Q {};
918 X<void() throw()> x;
920 X<void(void() throw())> y;
937 template<typename T> friend void dr90_f(T);
940 template<typename T> friend void dr90_g(T);
947 void test() {
983 static void f(); // expected-note {{here}}
988 struct B { void f() { N::C::f(); } }; // expected-error {{private}}
993 void f(int);
1000 void test() {
1019 void test(int n) {
1039 template<typename T> void f(T&);