Lines Matching full:static_cast
24 { bool b = static_cast<void (&)(char)>(f); } // expected-error{{does not match}}
25 { bool b = static_cast<void (*)(char)>(f); } // expected-error{{address of overloaded function}}
27 { bool b = static_cast<void (&)(int)>(f); } //ok
28 { bool b = static_cast<void (*)(int)>(f); } //ok
35 { bool b = static_cast<void (*)(char)>(g); } // expected-error{{not allowed}}
46 { bool b = static_cast<void (&)(char)>(t); } //ok
47 { bool b = static_cast<void (*)(char)>(t); } //ok
49 { bool b = static_cast<void (&)(int)>(t); } //ok
50 { bool b = static_cast<void (*)(int)>(t); } //ok
57 { bool b = static_cast<int (*)(char)>(t); } // expected-error{{cannot be static_cast}}
58 { bool b = static_cast<int (&)(char)>(t); } // expected-error{{does not match required}}
60 { bool b = static_cast<void (&)(char)>(f); } // expected-error{{does not match}}
67 FnType a = static_cast<FnType>(f); // expected-error{{address of overloaded function}}