diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-12-31 20:09:48 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-12-31 20:09:48 +0000 |
commit | 861f006d3f103cc12d450943c71b210b55ae4dd9 (patch) | |
tree | 95937cbf7e92511b89d72e849ca61f364fc733f7 /libcxx/test/strings/basic.string/string.ops | |
parent | da3e31a4196829b5134d2725b6d27ce057ec7831 (diff) | |
download | bcm5719-llvm-861f006d3f103cc12d450943c71b210b55ae4dd9.tar.gz bcm5719-llvm-861f006d3f103cc12d450943c71b210b55ae4dd9.zip |
Klaas de Vries: Fix bug in libc++'s std::string::find_first_not_of.
llvm-svn: 171321
Diffstat (limited to 'libcxx/test/strings/basic.string/string.ops')
-rw-r--r-- | libcxx/test/strings/basic.string/string.ops/string_find.first.not.of/char_size.pass.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/strings/basic.string/string.ops/string_find.first.not.of/char_size.pass.cpp b/libcxx/test/strings/basic.string/string.ops/string_find.first.not.of/char_size.pass.cpp index 88ce6b9817b..3be9e92d646 100644 --- a/libcxx/test/strings/basic.string/string.ops/string_find.first.not.of/char_size.pass.cpp +++ b/libcxx/test/strings/basic.string/string.ops/string_find.first.not.of/char_size.pass.cpp @@ -59,6 +59,8 @@ int main() test(S("oselktgbcapndfjihrmq"), 'q', 21, S::npos); test(S(""), 'q', S::npos); + test(S("q"), 'q', S::npos); + test(S("qqq"), 'q', S::npos); test(S("csope"), 'q', 0); test(S("gfsmthlkon"), 'q', 0); test(S("laenfsbridchgotmkqpj"), 'q', 0); |