[libcxx-commits] [PATCH] D103309: [libcxx] [test] Don't look for the literal spelling __mbstate_t

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 29 01:42:36 PDT 2021


Mordante accepted this revision as: Mordante.
Mordante added a comment.

LGTM, modulo the remark.



================
Comment at: libcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char16_t_char.depr_in_cxx20.verify.cpp:23
 {
-    with_public_dtor<std::codecvt_byname<char16_t, char, std::mbstate_t>> cvt("", 0); // expected-warning {{'codecvt_byname<char16_t, char, __mbstate_t>' is deprecated}}
+    with_public_dtor<std::codecvt_byname<char16_t, char, std::mbstate_t>> cvt("", 0); // expected-warning-re {{'codecvt_byname<char16_t, char, {{.*}}>' is deprecated}}
     (void)cvt;
----------------
I think it would be good to add some comment like "Don't test for the exact type since the underlying type of std::mbstate_t depends on implementation details."


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103309/new/

https://reviews.llvm.org/D103309



More information about the libcxx-commits mailing list