int main()
{
lconv lc;
- static_assert((std::is_same<__typeof__(setlocale(0, "")), char*>::value), "");
- static_assert((std::is_same<__typeof__(localeconv()), lconv*>::value), "");
+ static_assert((std::is_same<decltype(setlocale(0, "")), char*>::value), "");
+ static_assert((std::is_same<decltype(localeconv()), lconv*>::value), "");
}
int main()
{
jmp_buf jb;
- static_assert((std::is_same<__typeof__(longjmp(jb, 0)), void>::value),
- "std::is_same<__typeof__(longjmp(jb, 0)), void>::value");
+ static_assert((std::is_same<decltype(longjmp(jb, 0)), void>::value),
+ "std::is_same<decltype(longjmp(jb, 0)), void>::value");
}
int main()
{
std::jmp_buf jb;
- static_assert((std::is_same<__typeof__(std::longjmp(jb, 0)), void>::value),
- "std::is_same<__typeof__(std::longjmp(jb, 0)), void>::value");
+ static_assert((std::is_same<decltype(std::longjmp(jb, 0)), void>::value),
+ "std::is_same<decltype(std::longjmp(jb, 0)), void>::value");
}
int main()
{
std::lconv lc;
- static_assert((std::is_same<__typeof__(std::setlocale(0, "")), char*>::value), "");
- static_assert((std::is_same<__typeof__(std::localeconv()), std::lconv*>::value), "");
+ static_assert((std::is_same<decltype(std::setlocale(0, "")), char*>::value), "");
+ static_assert((std::is_same<decltype(std::localeconv()), std::lconv*>::value), "");
}