typedef __typeof__(static_cast<void *>(0)) static_cast_result;
struct Base { Base(int); virtual void f(int x = 492); ~Base(); };
struct Derived : Base { Derived(); void g(); };
Base *base_ptr;
typedef __typeof__(dynamic_cast<Derived *>(base_ptr)) dynamic_cast_result;
typedef __typeof__(reinterpret_cast<void *>(0)) reinterpret_cast_result;
const char *const_char_ptr_value;
typedef __typeof__(const_cast<char *>(const_char_ptr_value)) const_cast_result;
int int_value;
typedef __typeof__(double(int_value)) functional_cast_result;
typedef __typeof__(true) bool_literal_result;
const bool true_value = true;
const bool false_value = false;
typedef __typeof__(nullptr) cxx_null_ptr_result;
void foo(Derived *P) {
P->f(12);
}
namespace std {
class type_info {};
}
typedef __typeof__(typeid(int))* typeid_result1;
typedef __typeof__(typeid(2))* typeid_result2;
Derived foo();
Derived::Derived() : Base(4) {
}
void Derived::g() {
f(2); this->f(1);
throw;
throw 42;
f();
const Derived &X = foo();
int A = int(0.5); A = int();
Base *b = new Base(4); delete b; }
struct CtorStruct { CtorStruct(int, float); };
CtorStruct create_CtorStruct() {
return CtorStruct(1, 3.14f); };
const char char_value = 'a';
const wchar_t wchar_t_value = L'ı';
const char16_t char16_t_value = u'ç';
const char32_t char32_t_value = U'∂';