HomeSort by relevance Sort by last modified time
    Searched refs:dynamic_cast (Results 1 - 25 of 231) sorted by null

1 2 3 4 5 6 7 8 910

  /external/clang/test/SemaCXX/
dynamic-cast.cpp 25 (void)dynamic_cast<A>((A*)0); // expected-error {{'A' is not a reference or pointer}}
27 (void)dynamic_cast<A*>(0); // expected-error {{'int' is not a pointer}}
29 (void)dynamic_cast<int*>((A*)0); // expected-error {{'int' is not a class}}
31 (void)dynamic_cast<A*>((int*)0); // expected-error {{'int' is not a class}}
33 (void)dynamic_cast<int&>(*((A*)0)); // expected-error {{'int' is not a class}}
35 (void)dynamic_cast<A&>(*((int*)0)); // expected-error {{'int' is not a class}}
37 (void)dynamic_cast<Incomplete*>((A*)0); // expected-error {{'Incomplete' is an incomplete type}}
39 (void)dynamic_cast<A*>((Incomplete*)0); // expected-error {{'Incomplete' is an incomplete type}}
41 (void)dynamic_cast<A&>(A()); // expected-error {{dynamic_cast from rvalue to reference type 'A &'}
    [all...]
no-rtti.cpp 23 return dynamic_cast<B *>(a) != 0; // expected-error {{cannot use dynamic_cast with -fno-rtti}}
address-space-conversion.cpp 105 (void)dynamic_cast<A_ptr>(bp);
106 (void)dynamic_cast<A_ptr_1>(bp1);
107 (void)dynamic_cast<A_ptr_2>(bp2);
110 (void)dynamic_cast<B_ptr>(ap);
111 (void)dynamic_cast<B_ptr_1>(ap1);
112 (void)dynamic_cast<B_ptr_2>(ap2);
115 (void)dynamic_cast<A_ptr>(bp1); // expected-error{{casts away qualifiers}}
116 (void)dynamic_cast<A_ptr>(bp2); // expected-error{{casts away qualifiers}}
117 (void)dynamic_cast<A_ptr_1>(bp); // expected-error{{casts away qualifiers}}
118 (void)dynamic_cast<A_ptr_1>(bp2); // expected-error{{casts away qualifiers}
    [all...]
type-dependent-exprs.cpp 17 (void)dynamic_cast<X*>(&x);
  /external/clang/test/CodeGenCXX/
dynamic-cast-always-null.cpp 10 return dynamic_cast<C*>(b);
18 return dynamic_cast<C&>(b);
22 (void) dynamic_cast<void*>((A*)0);
23 (void) dynamic_cast<void*>((B*)0);
dynamic-cast-hint.cpp 24 volatile C *ac = dynamic_cast<C *>(a);
26 volatile D *ad = dynamic_cast<D *>(a);
28 volatile E *ae = dynamic_cast<E *>(a);
30 volatile F *af = dynamic_cast<F *>(a);
32 volatile G *ag = dynamic_cast<G *>(a);
34 volatile H *ah = dynamic_cast<H *>(a);
36 volatile I *ai = dynamic_cast<I *>(a);
38 volatile J *aj = dynamic_cast<J *>(a);
40 volatile K *ak = dynamic_cast<K *>(a);
42 volatile X *ax = dynamic_cast<X *>(a)
    [all...]
dynamic_cast-no-rtti.cpp 15 return dynamic_cast<A *>(b);
20 // A NoOp dynamic_cast can be used with -fno-rtti iff it does not use
23 return dynamic_cast<B *>(b);
dynamic-cast.cpp 12 dynamic_cast<const B&>(*a);
global-init.cpp 114 B *const q = &dynamic_cast<B&>(*p);
120 B *const r = dynamic_cast<B*>(p);
134 B *const w = dynamic_cast<B*>(v);
  /ndk/sources/cxx-stl/gabi++/tests/
dynamic_cast14.cpp 229 assert(dynamic_cast<A3*>(a3.getA1_3()) == a3.getA3());
230 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
232 assert(dynamic_cast<A3*>(a4.getA1_4()) == 0);
233 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
234 assert(dynamic_cast<A4*>(a4.getA1_4()) == a4.getA4());
235 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
237 assert(dynamic_cast<A3*>(a5.getA1_3()) == a5.getA3());
238 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
240 assert(dynamic_cast<A4*>(a5.getA1_3()) == a5.getA4());
241 assert(dynamic_cast<A4*>(a5.getA1_4()) == a5.getA4())
    [all...]
dynamic_cast5.cpp 78 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
79 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
80 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
81 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
82 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1());
83 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
84 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
85 assert(dynamic_cast<A1*>(a4.getA3()) == a4.getA1());
86 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
87 assert(dynamic_cast<A1*>(a5.getA1()) == a5.getA1())
    [all...]
dynamic_cast3.cpp 50 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
51 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
52 assert(dynamic_cast<A1*>(a3.getA3()) == 0);
53 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
54 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
55 assert(dynamic_cast<A2*>(a3.getA3()) == 0);
56 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
57 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
58 assert(dynamic_cast<A3*>(a3.getA3()) == a3.getA3());
104 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1())
    [all...]
  /external/clang/test/CXX/expr/expr.post/expr.dynamic.cast/
p3-0x.cpp 11 Y &&yr0 = dynamic_cast<Y&&>(x);
12 Y &&yr1 = dynamic_cast<Y&&>(static_cast<X&&>(x));
13 Y &&yr2 = dynamic_cast<Y&&>(z); // expected-error{{'Z' is an incomplete type}}
  /external/clang/test/Analysis/
dynamic-cast.cpp 26 B *b = dynamic_cast<B*>(a);
39 B *pbb = dynamic_cast<B*>(pb);
54 B *b = dynamic_cast<B*>(pa);
68 B *b = dynamic_cast<B*>(pbb);
69 BB *s = dynamic_cast<BB*>(b);
83 B *b = dynamic_cast<B*>(pbb);
90 return (dynamic_cast<B*>(a))->m;
96 return (*dynamic_cast<B*>(a)).m;
100 B *b = dynamic_cast<B*>(a);
105 B *b = dynamic_cast<B*>(a)
    [all...]
  /ndk/tests/device/test-stlport_shared-exception/jni/
dyncast7.cpp 16 const B& b2 = dynamic_cast<B&>(a);
17 const B& b3 = dynamic_cast<const B&>((const A&)a);
18 const B& b4 = dynamic_cast<const B&>(a);
dyncast1.cpp 17 (void)dynamic_cast<D&>(b);
dyncast2_1.cpp 19 void *vp = &dynamic_cast<D&>(*b);
  /ndk/tests/device/test-stlport_static-exception/jni/
dyncast7.cpp 16 const B& b2 = dynamic_cast<B&>(a);
17 const B& b3 = dynamic_cast<const B&>((const A&)a);
18 const B& b4 = dynamic_cast<const B&>(a);
dyncast1.cpp 17 (void)dynamic_cast<D&>(b);
dyncast2_1.cpp 19 void *vp = &dynamic_cast<D&>(*b);
  /ndk/sources/cxx-stl/gabi++/src/
pointer_to_member_type_info.cc 43 dynamic_cast<const __pointer_to_member_type_info *>(thr_type);
pointer_type_info.cc 46 if (dynamic_cast<const __function_type_info*>(thrown_type->__pointee)) {
class_type_info.cc 45 dynamic_cast<const __class_type_info*>(thrown_type);
87 dynamic_cast<const __vmi_class_type_info*>(type)) {
  /ndk/tests/device/test-basic-rtti/jni/
test_basic_rtti.cpp 42 bar = dynamic_cast<Bar*>(foo);
  /external/clang/test/Preprocessor/
cxx_oper_keyword_ms_compat.cpp 37 #define dynamic_cast macro
122 dynamic_cast

Completed in 549 milliseconds

1 2 3 4 5 6 7 8 910