add a test and a couple minor bug fixes for the implicit-signed-integer-truncation sanitizer. This is PR#40566

llvm-svn: 352926
This commit is contained in:
Marshall Clow
2019-02-01 21:59:27 +00:00
parent 259e1bdfdd
commit 2e719bc428
3 changed files with 7 additions and 2 deletions

View File

@@ -58,4 +58,9 @@ int main()
ss << i << ' ' << 321;
assert(ss.str() == L"89 3219 ");
}
{
std::stringstream ss;
ss.write("\xd1", 1);
assert(ss.str().length() == 1);
}
}