Home
last modified time | relevance | path

Searched refs:pmf (Results 1 – 19 of 19) sorted by relevance

/external/clang/test/SemaCXX/
Dbuiltin-ptrtomember-overload-1.cpp25 void foo(C c, int A::* pmf) { in foo() argument
26 int i = c->*pmf; in foo()
37 void foo1(C1 c1, int A::* pmf) { in foo1() argument
38 int i = c1->*pmf; in foo1()
39 c1->*pmf = 10; in foo1()
42 void foo1(C1 c1, int E::* pmf) { in foo1() argument
43 int i = c1->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ in foo1()
Doverloaded-builtin-operators.cpp28 typedef void (X::*pmf)(); typedef
30 operator pmf();
37 void f(Short s, Long l, Enum1 e1, Enum2 e2, Xpmf pmf) { in f() argument
51 (void)(pmf == &X::f); in f()
52 (void)(pmf == 0); in f()
71 operator pmf&();
93 pmf &pmr = (pmf_ref = &X::f); // expected-error{{no viable overloaded '='}} in g()
94 pmf pmr2; in g()
Dbuiltin-ptrtomember-overload.cpp14 void foo(C c, B b, int A::* pmf) { in foo() argument
15 int j = c->*pmf; in foo()
16 int i = b->*pmf; in foo()
Dbuiltin-ptrtomember-ambig.cpp19 void foo(C c, int A::* pmf) { in foo() argument
21 int i = c->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ in foo()
Dnullptr.cpp26 void (A::*pmf)() = nullptr; in f() local
27 pmf = null; in f()
170 template<int (*fp)(int), int* p, int A::* pmd, int (A::*pmf)(int)>
Dmember-pointer.cpp80 void (HasMembers::*pmf)() = &HasMembers::f; in g() local
/external/clang/test/CXX/expr/expr.mptr.oper/
Dp6-0x.cpp15 void test(X *xp, int (X::*pmf)(int), int (X::*l_pmf)(int) &, in test()
18 (lvalue<X>().*pmf)(17); in test()
19 (xvalue<X>().*pmf)(17); in test()
20 (prvalue<X>().*pmf)(17); in test()
21 (xp->*pmf)(17); in test()
/external/clang/test/CodeGenCXX/
Dmember-function-pointers.cpp93 bool (A::*pmf)(int*) const; member
96 B1() : pmf(&A::foo), pa(&a) {} in B1()
97 bool operator()() const { return (pa->*pmf)(new int); } in operator ()()
214 typedef int (X::*pmf)(int); typedef
217 pmf f() { in f()
219 return pmf(); in f()
Dptr-to-member-function.cpp50 bool (A::*pmf)(int*) const; member
52 B1(int i) : pmf(&A::foo), im(i) { in B1()
53 ((A*)this->*pmf)(&im); in B1()
Dreference-cast.cpp105 typedef int (X::*pmf)(int); typedef
108 pmf get_pointer_to_member_function();
Dnullptr.cpp19 int (X::*pmf)(int) = get_nullptr(); in g() local
/external/clang/test/SemaObjCXX/
Darc-memfunc.mm12 id (X0::*pmf)() __attribute__((ns_returns_retained)) = &X0::makeObject2;
13 (x0.*pmf)();
14 (x0p->*pmf)();
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/
Dp1-11.cpp39 template<int (X::*pmf)(int)> struct PMF { // expected-note 2 {{template parameter is declared here}}
40 PMF<pmf> *pmf2;
/external/stlport/test/unit/
Dmfunptr_test.cpp205 const_mem_fun1_ref_t<bool,V,int> pmf = mem_fun_ref( &V::f ); in find() local
206 binder2nd<const_mem_fun1_ref_t<bool,V,int> > b(pmf, 2); in find()
212 binder2nd<const_mem_fun1_ref_t<bool,V,int> > b2 = bind2nd( pmf, 2 ); in find()
/external/clang/test/CodeGenObjCXX/
Darc.mm125 id (Test35_Helper::*pmf)() __attribute__((ns_returns_retained))
129 id obj4 = (x0.*pmf)();
132 id obj5 = (x0p->*pmf)();
153 id (Test35_Helper::*pmf)() = &Test35_Helper::makeObject4;
156 id obj4 = (x0.*pmf)();
159 id obj5 = (x0p->*pmf)();
/external/clang/test/CXX/dcl.decl/
Dp4-0x.cpp8 void (X::*pmf)() & = &X::f; variable
/external/clang/test/CXX/temp/temp.param/
Dp4.cpp15 template<float (X::*pmf)(float, int)> struct A9;
/external/clang/test/SemaTemplate/
Dinstantiate-local-class.cpp61 pmf_type pmf = &T::foo; in foo() local
Dtemp_arg_nontype.cpp79 template<int (Z::*pmf)(int)> struct A6; // expected-note{{template parameter is declared here}}