Lines Matching full:void
3 template < bool condition, typename T = void >
12 void implicit(typename enable_if< O <= 4 >::type* = 0) {
16 void cstyle(typename enable_if< O <= (unsigned)4 >::type* = 0) {
20 void functional(typename enable_if< O <= unsigned(4) >::type* = 0) {
24 void static_(typename enable_if< O <= static_cast<unsigned>(4) >::type* = 0) {
28 void auto_(decltype(new auto(T()))) {
37 // CHECK: define weak_odr void @_ZN5Casts8implicitILj4EEEvPN9enable_ifIXleT_Li4EEvE4typeE
38 template void implicit<4>(void*);
39 // CHECK: define weak_odr void @_ZN5Casts6cstyleILj4EEEvPN9enable_ifIXleT_cvjLi4EEvE4typeE
40 template void cstyle<4>(void*);
41 // CHECK: define weak_odr void @_ZN5Casts10functionalILj4EEEvPN9enable_ifIXleT_cvjLi4EEvE4typeE
42 template void functional<4>(void*);
43 // CHECK: define weak_odr void @_ZN5Casts7static_ILj4EEEvPN9enable_ifIXleT_cvjLi4EEvE4typeE
44 template void static_<4>(void*);
46 // CHECK: define weak_odr void @_ZN5Casts1fILi6EEENS_1TIXT_EEEv
49 // CHECK: define weak_odr void @_ZN5Casts5auto_IiEEvDTnw_DapicvT__EEE(
50 template void auto_<int>(int*);
63 void test(short s) {
70 template <class T> void a(T x, decltype(x()) y) {}
72 template <class T> void c(T x, void (*p)(decltype(x()))) {}
73 template <class T> void d(T x, auto (*p)() -> decltype(x())) {}
74 template <class T> void e(auto (*p)(T y) -> decltype(y())) {}
75 template <class T> void f(void (*p)(T x, decltype(x()) y)) {}
76 template <class T> void g(T x, decltype(x()) y) {
80 template <class T> void h(T x, decltype((decltype(x())(*)()) 0) y) {}
81 template <class T> void i(decltype((auto (*)(T x) -> decltype(x())) 0) y) {}
84 void bar(float);
86 void fred(float(*)(), float);
88 // CHECK: define void @_ZN5test211instantiateEv
89 void instantiate() {
90 // CHECK: call void @_ZN5test21aIPFfvEEEvT_DTclfL0p_EE(
93 (void) b(foo);
94 // CHECK: call void @_ZN5test21cIPFfvEEEvT_PFvDTclfL1p_EEE(
96 // CHECK: call void @_ZN5test21dIPFfvEEEvT_PFDTclfL0p_EEvE(
98 // CHECK: call void @_ZN5test21eIPFfvEEEvPFDTclfp_EET_E(
100 // CHECK: call void @_ZN5test21fIPFfvEEEvPFvT_DTclfL0p_EEE(
102 // CHECK: call void @_ZN5test21gIPFfvEEEvT_DTclfL0p_EE(
104 // CHECK: call void @_ZN5test21hIPFfvEEEvT_DTcvPFDTclfL0p_EEvELi0EE(
106 // CHECK: call void @_ZN5test21iIPFfvEEEvDTcvPFDTclfp_EET_ELi0EE(
114 template <class T, class U> void a(T x, U y, decltype(x.*y) z) {}
120 // CHECK: define void @_ZN5test311instantiateEv
121 void instantiate() {
124 // CHECK: call void @_ZN5test31aINS_1XEMS1_PiEEvT_T0_DTdsfL0p_fL0p0_E