#include #include void test_pr37475() { typedef std::codecvt test_type; const test_type& cvt = std::use_facet(std::locale::classic()); const char from = 'a'; const char* from_next; wchar_t to = 0; wchar_t* to_next; std::mbstate_t st = std::mbstate_t(); std::codecvt_base::result res = cvt.in(st, &from, &from+1, from_next, &to, &to, to_next); VERIFY( res == std::codecvt_base::partial ); } int main() { test_pr37475(); }