Searched refs:const_cast (Results 1 - 25 of 86) sorted by relevance

1234

/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.robertl/
H A Deb48.C4 return const_cast<char *>(s);
9 return const_cast<char *&>(s);
H A Deb75.C4 return const_cast<int*&> (x);
14 T2 using the cast const_cast<T2&> (where T1 and T2 are object types)
16 T2 using a const_cast. The result of a reference const_cast refers to
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Drv-cast2.C1 // Test for const_cast to reference (5.2.11/4).
12 const_cast<int&>(lval<int>());
13 const_cast<int&>(xval<int>()); // { dg-error "" }
14 const_cast<int&>(prval<int>()); // { dg-error "" }
15 const_cast<int&&>(lval<int>());
16 const_cast<int&&>(xval<int>());
17 const_cast<int&&>(prval<int>()); // { dg-error "" }
18 const_cast<A&&>(lval<A>());
19 const_cast<A&&>(xval<A>());
20 const_cast<
[all...]
H A Dpr51150.C15 const int now2 = const_cast<double>(val); // { dg-error "invalid" }
H A Dvariadic58.C12 foo(const_cast<const Args>(args)...);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/conversion/
H A Dconst1.C4 char *& m = const_cast<char *>(str); // { dg-error "" }
H A Dconst3.C6 const_cast<int&>(X);
H A Dconst2.C10 const_cast<dm>(bp); // { dg-error "" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dcast2.C13 const_cast<const A>(a); // { dg-error "" } const_cast requires pointer/ref types
14 const_cast<F>(p); // { dg-error "" } const_cast requires pointer/ref types
15 const_cast<int (*)()>(&main); // { dg-error "" } function type in const_cast
16 const_cast<int (&)()>(main); // { dg-error "" } function type in const_cast
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.pt/
H A Dcast1.C6 const_cast<T>(t);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/warn/
H A DWuseless-cast.C11 const_cast<int*>(&t);
16 const_cast<int&>(t);
25 const_cast<int&>(t);
39 const_cast<A*>(&t);
45 const_cast<A&>(t);
55 const_cast<A&>(t);
72 const_cast<int*>(&n); // { dg-warning "useless cast" }
79 const_cast<int&>(m); // { dg-warning "useless cast" }
86 const_cast<int&>(n); // { dg-warning "useless cast" }
97 const_cast<
[all...]
H A Dnoeffect4.C80 const_cast<X &> (x.Foo ()); // { dg-warning "not used" }
83 const_cast<X &> (x); // { dg-warning "no effect" "" }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.martin/
H A Dsts_conv.C11 operator double* () const { return const_cast<double *>(a); }
/haiku-buildtools/gcc/libstdc++-v3/config/os/aix/
H A Datomicity.h48 { return ::fetch_and_add(const_cast<atomic_p>(__mem), __val); }
53 { (void) ::fetch_and_add(const_cast<atomic_p>(__mem), __val); }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/template/
H A Dcast1.C16 const_cast<A&>(a).foo();
H A Dnontype25.C11 template<const B* b> void g(D<b> &, E<const_cast<B*>(b)> &) {} // { dg-error "" "" { target { ! c++11 } } }
19 E<const_cast<B*>(&b)> e; // { dg-error "" "" { target { ! c++11 } } }
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.mike/
H A Dp6058.C11 const_cast<struct s4 { } *>((s4*)0); // { dg-error "" }
H A Dp7476.C18 const_cast<void*>(dynamic_cast<const void*>(ptr));
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/rtti/
H A Dtinfo1.C39 typeid(const_cast<m_variable_type *>(m_variable)).name() != 0;
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/
H A DWcxx-compat-2.c9 int const_cast; /* { dg-warning "5:keyword" } */ variable
/haiku-buildtools/gcc/libbacktrace/
H A Dmmapio.c95 } const_cast; local
97 const_cast.cv = view->base;
98 if (munmap (const_cast.v, view->len) < 0)
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/other/
H A Dunused1.C32 return const_cast<printer *>(dotmatrix)->i;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/abi/
H A Dmangle52.C7 template <class T, T* p> void check2( helper<sizeof(const_cast<T*>(p))> * ) { } // { dg-warning "mangle" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/torture/
H A Dpr44813.C58 gfxSkipCharsIterator iter = const_cast<nsTextFrame*>(this)->EnsureTextRun();
59 PropertyProvider provider(const_cast<nsTextFrame*>(this), iter);
/haiku-buildtools/gcc/gcc/
H A Ddomwalk.c147 basic_block bb1 = *(basic_block *)const_cast<void *>(a);
148 basic_block bb2 = *(basic_block *)const_cast<void *>(b);

Completed in 240 milliseconds

1234