Lines Matching full:__host__
23 __host__ int hh(void) { return 1; } // expected-note {{previous definition is here}}
27 __host__ int dh(void) { return 2; }
31 __host__ __device__ int hdh(void) { return 5; } // expected-note {{previous definition is here}}
32 __host__ int hdh(void) { return 4; } // expected-error {{redefinition of 'hdh'}}
34 __host__ int hhd(void) { return 4; } // expected-note {{previous definition is here}}
35 __host__ __device__ int hhd(void) { return 5; } // expected-error {{redefinition of 'hhd'}}
39 __host__ __device__ int hdd(void) { return 7; } // expected-note {{previous definition is here}}
43 __host__ __device__ int dhd(void) { return 7; } // expected-error {{redefinition of 'dhd'}}
48 extern "C" __host__ int chh(void) {return 11;} // expected-note {{previous definition is here}}
53 extern "C" __host__ int cdh(void) {return 11;}
56 extern "C" __host__ __device__ int chhd1(void) {return 12;} // expected-note {{previous definition is here}}
57 extern "C" __host__ int chhd1(void) {return 13;} // expected-error {{redefinition of 'chhd1'}}
59 extern "C" __host__ int chhd2(void) {return 13;} // expected-note {{previous definition is here}}
60 extern "C" __host__ __device__ int chhd2(void) {return 12;} // expected-error {{redefinition of 'chhd2'}}
66 __host__ int h(void) { return 9; }
69 extern "C" __host__ int ch(void) {return 11;}
71 __host__ void hostf(void) {
75 // expected-error@-3 {{reference to __device__ function 'd' in __host__ function}}
77 // expected-error@-4 {{reference to __device__ function 'cd' in __host__ function}}
90 // expected-note@65 {{candidate function not viable: call to __device__ function from __host__ function}}
92 // expected-note@68 {{candidate function not viable: call to __device__ function from __host__ function}}
109 // expected-error@-3 {{reference to __host__ function 'h' in __device__ function}}
111 // expected-error@-4 {{reference to __host__ function 'ch' in __device__ function}}
125 // expected-note@66 {{candidate function not viable: call to __host__ function from __device__ function}}
127 // expected-note@69 {{candidate function not viable: call to __host__ function from __device__ function}}
143 // expected-error@-3 {{reference to __host__ function 'h' in __global__ function}}
145 // expected-error@-4 {{reference to __host__ function 'ch' in __global__ function}}
159 // expected-note@66 {{candidate function not viable: call to __host__ function from __global__ function}}
161 // expected-note@69 {{candidate function not viable: call to __host__ function from __global__ function}}
171 __host__ __device__ void hostdevicef(void) {
178 // expected-error@-6 {{reference to __device__ function 'd' in __host__ __device__ function}}
180 // expected-error@-7 {{reference to __device__ function 'cd' in __host__ __device__ function}}
183 // expected-error@-9 {{reference to __host__ function 'h' in __host__ __device__ function}}
185 // expected-error@-10 {{reference to __host__ function 'ch' in __host__ __device__ function}}
193 // expected-error@-2 {{reference to __global__ function 'g' in __host__ __device__ function}}
204 // expected-note@65 {{candidate function not viable: call to __device__ function from __host__ __device__ function}}
206 // expected-note@68 {{candidate function not viable: call to __device__ function from __host__ __device__ function}}
209 // expected-note@66 {{candidate function not viable: call to __host__ function from __host__ __device__ function}}
211 // expected-note@69 {{candidate function not viable: call to __host__ function from __host__ __device__ function}}
223 // expected-note@67 {{candidate function not viable: call to __global__ function from __host__ __device__ function}}
224 // expected-error@-6 {{reference to __global__ function 'g' in __host__ __device__ function}}
241 __host__ ~d_h() {} // expected-error {{destructor cannot be redeclared}}
247 __host__ ~d_dh() {}
252 __host__ __device__ ~d_hd() {}
258 __host__ ~d_dhhd() {} // expected-note {{previous declaration is here}}
259 __host__ __device__ ~d_dhhd() {} // expected-error {{destructor cannot be redeclared}}
263 __host__ ~d_hhd() {} // expected-note {{previous declaration is here}}
264 __host__ __device__ ~d_hhd() {} // expected-error {{destructor cannot be redeclared}}
268 __host__ __device__ ~d_hdh() {} // expected-note {{previous declaration is here}}
269 __host__ ~d_hdh() {} // expected-error {{destructor cannot be redeclared}}
274 __host__ __device__ ~d_dhd() {} // expected-error {{destructor cannot be redeclared}}
278 __host__ __device__ ~d_hdd() {} // expected-note {{previous declaration is here}}
285 __host__ void operator delete(void *ptr); // expected-error {{class member cannot be redeclared}}
291 __host__ void operator delete(void *ptr);
296 __device__ __host__ void operator delete(void *ptr);
300 __host__ void operator delete(void *ptr) {} // expected-note {{previous declaration is here}}
301 __host__ __device__ void operator delete(void *ptr) {} // expected-error {{class member cannot be redeclared}}
305 __host__ __device__ void operator delete(void *ptr) {} // expected-note {{previous declaration is here}}
306 __host__ void operator delete(void *ptr) {} // expected-error {{class member cannot be redeclared}}
311 __host__ __device__ void operator delete(void *ptr) {} // expected-error {{class member cannot be redeclared}}
315 __host__ __device__ void operator delete(void *ptr) {} // expected-note {{previous declaration is here}}