summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/input.output
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2019-02-01 21:59:27 +0000
committerMarshall Clow <mclow.lists@gmail.com>2019-02-01 21:59:27 +0000
commit2e719bc428d27345da7cdcfa634c03ec69f31474 (patch)
tree8424b76ac0b2d8e985e0617c23e1440e49e18eb1 /libcxx/test/std/input.output
parent259e1bdfdd2cb1c9bbcb6e0ce9014ad66535d27f (diff)
downloadbcm5719-llvm-2e719bc428d27345da7cdcfa634c03ec69f31474.tar.gz
bcm5719-llvm-2e719bc428d27345da7cdcfa634c03ec69f31474.zip
add a test and a couple minor bug fixes for the implicit-signed-integer-truncation sanitizer. This is PR#40566
llvm-svn: 352926
Diffstat (limited to 'libcxx/test/std/input.output')
-rw-r--r--libcxx/test/std/input.output/string.streams/stringstream.members/str.pass.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/test/std/input.output/string.streams/stringstream.members/str.pass.cpp b/libcxx/test/std/input.output/string.streams/stringstream.members/str.pass.cpp
index b8fa28ddb28..392a1680e5c 100644
--- a/libcxx/test/std/input.output/string.streams/stringstream.members/str.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/stringstream.members/str.pass.cpp
@@ -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);
+ }
}
OpenPOWER on IntegriCloud