diff --git a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char16_t_char.depr_in_cxx20.verify.cpp b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char16_t_char.depr_in_cxx20.verify.cpp index bdf8b6060dc3df..c430321699a6d4 100644 --- a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char16_t_char.depr_in_cxx20.verify.cpp +++ b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char16_t_char.depr_in_cxx20.verify.cpp @@ -20,7 +20,9 @@ int main(int, char **) { - with_public_dtor> cvt("", 0); // expected-warning {{'codecvt_byname' is deprecated}} + // Don't test for the exact type since the underlying type of + // std::mbstate_t depends on implementation details. + with_public_dtor> cvt("", 0); // expected-warning-re {{'codecvt_byname' is deprecated}} (void)cvt; return 0; diff --git a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char32_t_char.depr_in_cxx20.verify.cpp b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char32_t_char.depr_in_cxx20.verify.cpp index 1efab596499eb8..ebace3a4f647fd 100644 --- a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char32_t_char.depr_in_cxx20.verify.cpp +++ b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char32_t_char.depr_in_cxx20.verify.cpp @@ -20,7 +20,9 @@ int main(int, char **) { - with_public_dtor> cvt("", 0); // expected-warning {{'codecvt_byname' is deprecated}} + // Don't test for the exact type since the underlying type of + // std::mbstate_t depends on implementation details. + with_public_dtor> cvt("", 0); // expected-warning-re {{'codecvt_byname' is deprecated}} (void)cvt; return 0; diff --git a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char16_t_char.depr_in_cxx20.verify.cpp b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char16_t_char.depr_in_cxx20.verify.cpp index 289d9e5f456075..54f57c6b049855 100644 --- a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char16_t_char.depr_in_cxx20.verify.cpp +++ b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char16_t_char.depr_in_cxx20.verify.cpp @@ -20,7 +20,9 @@ int main(int, char **) { - with_public_dtor> cvt("", 0); // expected-warning {{'codecvt' is deprecated}} + // Don't test for the exact type since the underlying type of + // std::mbstate_t depends on implementation details. + with_public_dtor> cvt("", 0); // expected-warning-re {{'codecvt' is deprecated}} (void)cvt; return 0; diff --git a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char32_t_char.depr_in_cxx20.verify.cpp b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char32_t_char.depr_in_cxx20.verify.cpp index d415d919e543e9..9b7fdc5165b67f 100644 --- a/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char32_t_char.depr_in_cxx20.verify.cpp +++ b/libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char32_t_char.depr_in_cxx20.verify.cpp @@ -20,7 +20,9 @@ int main(int, char **) { - with_public_dtor> cvt("", 0); // expected-warning {{'codecvt' is deprecated}} + // Don't test for the exact type since the underlying type of + // std::mbstate_t depends on implementation details. + with_public_dtor> cvt("", 0); // expected-warning-re {{'codecvt' is deprecated}} (void)cvt; return 0;