diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2014-10-21 15:07:09 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2014-10-21 15:07:09 +0000 |
commit | 79e23cb9724561b9c103c39f04311ffe0acdf6c6 (patch) | |
tree | 031c909b02e3b83b8ee085011f9926e88f667c66 /libcxx/test | |
parent | 450d430f55f9ef5cf8ce1a4ae440f441873e152b (diff) | |
download | bcm5719-llvm-79e23cb9724561b9c103c39f04311ffe0acdf6c6.tar.gz bcm5719-llvm-79e23cb9724561b9c103c39f04311ffe0acdf6c6.zip |
Some tests used __typeof__ instead of decltype. Replace these usages.
llvm-svn: 220296
Diffstat (limited to 'libcxx/test')
4 files changed, 8 insertions, 8 deletions
diff --git a/libcxx/test/depr/depr.c.headers/locale_h.pass.cpp b/libcxx/test/depr/depr.c.headers/locale_h.pass.cpp index eff9b2b6daa..6ecf5a82e8d 100644 --- a/libcxx/test/depr/depr.c.headers/locale_h.pass.cpp +++ b/libcxx/test/depr/depr.c.headers/locale_h.pass.cpp @@ -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), ""); } diff --git a/libcxx/test/depr/depr.c.headers/setjmp_h.pass.cpp b/libcxx/test/depr/depr.c.headers/setjmp_h.pass.cpp index 2a8abe399f5..36f42539069 100644 --- a/libcxx/test/depr/depr.c.headers/setjmp_h.pass.cpp +++ b/libcxx/test/depr/depr.c.headers/setjmp_h.pass.cpp @@ -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"); } diff --git a/libcxx/test/language.support/support.runtime/csetjmp.pass.cpp b/libcxx/test/language.support/support.runtime/csetjmp.pass.cpp index a54f67b8f51..dc034ce099e 100644 --- a/libcxx/test/language.support/support.runtime/csetjmp.pass.cpp +++ b/libcxx/test/language.support/support.runtime/csetjmp.pass.cpp @@ -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"); } diff --git a/libcxx/test/localization/c.locales/clocale.pass.cpp b/libcxx/test/localization/c.locales/clocale.pass.cpp index 87748655d68..3b3e933c551 100644 --- a/libcxx/test/localization/c.locales/clocale.pass.cpp +++ b/libcxx/test/localization/c.locales/clocale.pass.cpp @@ -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), ""); } |