Lines Matching refs:__host__

35 __host__ void hh() {} // expected-note {{previous definition is here}}  in hh()
39 __host__ HostReturnTy dh() { return HostReturnTy(); } in dh()
43 __host__ __device__ int hdh() { return 0; } // expected-note {{previous definition is here}} in hdh()
44 __host__ int hdh() { return 0; } // expected-error {{redefinition of 'hdh'}} in hdh()
46 __host__ int hhd() { return 0; } // expected-note {{previous definition is here}} in hhd()
47 __host__ __device__ int hhd() { return 0; } // expected-error {{redefinition of 'hhd'}} in hhd()
51 __host__ __device__ int hdd() { return 0; } // expected-note {{previous definition is here}} in hdd()
55 __host__ __device__ int dhd() { return 0; } // expected-error {{redefinition of 'dhd'}} in dhd()
60 extern "C" __host__ int chh() { return 0; } // expected-note {{previous definition is here}} in chh()
65 extern "C" __host__ HostReturnTy cdh() { return HostReturnTy(); } in cdh()
68 extern "C" __host__ __device__ int chhd1() { return 0; } // expected-note {{previous definition is … in chhd1()
69 extern "C" __host__ int chhd1() { return 0; } // expected-error {{redefinition of 'chhd1… in chhd1()
71 extern "C" __host__ int chhd2() { return 0; } // expected-note {{previous definition is … in chhd2()
72 extern "C" __host__ __device__ int chhd2() { return 0; } // expected-error {{redefinition of 'chhd2… in chhd2()
82 __host__ HostReturnTy h() { return HostReturnTy(); } in h()
99 extern "C" __host__ HostReturnTy ch() { return HostReturnTy(); } in ch()
105 __host__ void hostf() { in hostf()
168 __host__ __device__ void hostdevicef() { in hostdevicef()
210 __host__ ~d_h() {} // expected-error {{destructor cannot be redeclared}} in ~d_h()
216 __host__ ~d_dh() {} in ~d_dh()
221 __host__ __device__ ~d_hd() {} in ~d_hd()
227 __host__ ~d_dhhd() {} // expected-note {{previous declaration is here}} in ~d_dhhd()
228 __host__ __device__ ~d_dhhd() {} // expected-error {{destructor cannot be redeclared}} in ~d_dhhd()
232 __host__ ~d_hhd() {} // expected-note {{previous declaration is here}} in ~d_hhd()
233 __host__ __device__ ~d_hhd() {} // expected-error {{destructor cannot be redeclared}} in ~d_hhd()
237 __host__ __device__ ~d_hdh() {} // expected-note {{previous declaration is here}} in ~d_hdh()
238 __host__ ~d_hdh() {} // expected-error {{destructor cannot be redeclared}} in ~d_hdh()
243 __host__ __device__ ~d_dhd() {} // expected-error {{destructor cannot be redeclared}} in ~d_dhd()
247 __host__ __device__ ~d_hdd() {} // expected-note {{previous declaration is here}} in ~d_hdd()
254 __host__ void operator delete(void *ptr); // expected-error {{class member cannot be redeclared}}
260 __host__ void operator delete(void *ptr);
265 __device__ __host__ void operator delete(void *ptr);
269 __host__ void operator delete(void *ptr) {} // expected-note {{previous declaration is here}} in operator delete()
270__host__ __device__ void operator delete(void *ptr) {} // expected-error {{class member cannot be … in operator delete()
274__host__ __device__ void operator delete(void *ptr) {} // expected-note {{previous declaration is … in operator delete()
275__host__ void operator delete(void *ptr) {} // expected-error {{class member cannot be redeclared}} in operator delete()
280__host__ __device__ void operator delete(void *ptr) {} // expected-error {{class member cannot be … in operator delete()
284__host__ __device__ void operator delete(void *ptr) {} // expected-note {{previous declaration is … in operator delete()
319 __host__ __device__ void test_host_device_calls_template(void) { in test_host_device_calls_template()
332 __host__ void test_host_calls_template_fn() { in test_host_calls_template_fn()
347 __host__ __device__ HostDeviceReturnTy template_vs_hd_function(float arg) { in template_vs_hd_function()
351 __host__ __device__ void test_host_device_calls_hd_template() { in test_host_device_calls_hd_template()
356 __host__ void test_host_calls_hd_template() { in test_host_calls_hd_template()
373 __host__ HostReturnTy host_only_function(int arg) { return HostReturnTy(); } in host_only_function()
374 __host__ HostReturnTy2 host_only_function(float arg) { return HostReturnTy2(); } in host_only_function()
376 __host__ __device__ void test_host_device_single_side_overloading() { in test_host_device_single_side_overloading()