Fixing regression test id_2857454

git-svn-id: http://svn.code.sf.net/p/utfcpp/code@103 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
ntrifunovic 2009-10-12 22:54:15 +00:00 committed by King_DuckZ
parent cb757aff4f
commit fb7c7337a9

View file

@ -32,6 +32,7 @@ void id_2857454()
{ {
utf8::utf16to8(lead_surrogate_last, lead_surrogate_last + 2, back_inserter(utf8_result)); utf8::utf16to8(lead_surrogate_last, lead_surrogate_last + 2, back_inserter(utf8_result));
// should throw in the previous line and never get here // should throw in the previous line and never get here
check(false);
} }
catch(utf8::invalid_utf16&) catch(utf8::invalid_utf16&)
{ {