Some tests used __typeof__ instead of decltype. Replace these usages.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@220296 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2014-10-21 15:07:09 +00:00
parent 8148fdb5d2
commit 4a655fdde5
4 changed files with 8 additions and 8 deletions

View File

@ -43,6 +43,6 @@
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), "");
}

View File

@ -15,6 +15,6 @@
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");
}

View File

@ -19,6 +19,6 @@
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");
}

View File

@ -43,6 +43,6 @@
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), "");
}