Searched refs:static_cast (Results 1 - 25 of 418) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dcast3.C5 // static_cast should not cast _away_ constness ([expr.static.cast]/6),
15 static_cast <X *> (p);
16 static_cast <X const *> (p);
17 static_cast <int *> (p);
18 static_cast <int const *> (p);
19 static_cast <int **> (p);
20 static_cast <int const **> (p);
21 static_cast <int *const *> (p);
22 static_cast <int const *const *> (p);
24 static_cast <
[all...]
H A Dsc1.C8 static_cast <const int *>(i);
9 static_cast <int *>(c); // { dg-error "" } casts away constness
H A Dcast5.C14 static_cast <void const *> (ary);
15 static_cast <void *> (ary); // { dg-error "" } casts away const
21 static_cast <void *> (ary);
22 static_cast <void const *> (ary);
28 static_cast <void const *> (ary);
29 static_cast <void *> (ary); // { dg-error "" } casts away const
35 static_cast <void *> (ary);
36 static_cast <void const *> (ary);
H A Dcast4.C20 static_cast <char *> (a);
21 static_cast <char *> (b);
22 static_cast <char *> (c); // { dg-error "" } static cast
23 static_cast <char *> (d); // { dg-error "" } static cast
33 static_cast <const char *> (a);
34 static_cast <const char *> (b);
35 static_cast <const char *> (c);
36 static_cast <const char *> (d);
46 static_cast <char *> (a); // { dg-error "" } static cast
47 static_cast <cha
[all...]
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/warn/
H A DWunused-var-9.C9 static_cast <void> (i);
12 static_cast <void> (j);
H A DWunused-parm-6.C6 Foo(void* x) : y{static_cast<char*>(x)} {}
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/expr/
H A Dstatic_cast1.C3 static_cast<const unsigned int&>(x);
H A Dstatic_cast2.C5 (1 ? static_cast<B&>(a) :
6 *static_cast<B*>(&a));
H A Ddtor1.C6 static_cast<Foo*>(p)->~Foo(); // { dg-error "" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/
H A Dattrib22.C5 static_cast<float *__attribute((unused))>(0); // { dg-error "expected" }
H A Dlvalue1.C7 static_cast<int>(c) = 2; // { dg-error "lvalue" "not an lvalue" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Dgen-attrs-22.C6 static_cast<float *[[gnu::unused]]>(0); // { dg-warning "ignored" }
H A Denum10.C8 return static_cast<bool>(OpSE());
H A Drv-cast.C5 int&& r = static_cast<int&&>(i);
H A Denum6.C12 char ret = static_cast<char> (a1)
13 | static_cast<char> (a2);
14 return static_cast<E>(ret);
H A Ddecltype23.C3 int x, &&y = static_cast<int &&>(x);
H A Dconstexpr-46336.C8 { return A(static_cast<int>(a) & static_cast<int>(b)); }
12 { return B(static_cast<int>(a) & static_cast<int>(b)); }
H A Denum9.C5 bool b2 = static_cast<bool>(f());
H A Drv-bitfield.C11 static_cast<int&&>(a.i);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/tc1/
H A Ddr137.C3 // DR137: static_cast of cv void*
11 (void)static_cast<const volatile A *>(v);
12 (void)static_cast<A *>(v); // { dg-error "" "static_cast cannot remove cv qualifiers" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/template/
H A Dloop1.C6 while (p1 && *static_cast<int *>(static_cast<void *>(a)))
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.abi/
H A Dprimary3.C28 if (static_cast <void *> (apc) != static_cast <void *> (b1pc))
30 if (static_cast <void *> (&c) != static_cast <void *> (b2pc))
32 if (static_cast <void *> (b1pc) == static_cast <void *> (b2pc))
35 if (static_cast <void *> (apd) != static_cast <void *> (b1pd))
37 if (static_cast <void *> (b2pd) != static_cast <voi
[all...]
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/other/
H A Dnew-size-type.C8 return new char[~static_cast<size_t>(0)];// { dg-bogus "large" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/rtti/
H A Dpredefined-rtti-macro-2.C10 static_cast<B*>(0);
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.robertl/
H A Deb18.C7 void * v = static_cast<void *>(c); // { dg-error "" } illegal cast

Completed in 153 milliseconds

1234567891011>>