Debian Codegraph @

libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/37475.cc

raw symbols SCIP
1 #include <locale>
2 #include <testsuite_hooks.h>
3
4 void
5 test_pr37475()
6 {
7 typedef std::codecvt<wchar_t, char, std::mbstate_t> test_type;
8 const test_type& cvt = std::use_facet<test_type>(std::locale::classic());
9 const char from = 'a';
10 const char* from_next;
11 wchar_t to = 0;
12 wchar_t* to_next;
13 std::mbstate_t st = std::mbstate_t();
14 std::codecvt_base::result res
15 = cvt.in(st, &from, &from+1, from_next, &to, &to, to_next);
16
17 VERIFY( res == std::codecvt_base::partial );
18 }
19
20 int main()
21 {
22 test_pr37475();
23 }