summaryrefslogtreecommitdiffstats
path: root/libcxx/test/strings/basic.string/string.modifiers/string_op+=/char.pass.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-08 17:06:47 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-08 17:06:47 +0000
commit5f53fceff01558582fbd4c7bd7bd1dc9a4fbdb90 (patch)
tree0f548389e5b5a8203af77e1985b0d6faf5d1bc81 /libcxx/test/strings/basic.string/string.modifiers/string_op+=/char.pass.cpp
parent35fd7bc7e099c0dfb82cc947219515bbc0b5ec0c (diff)
downloadbcm5719-llvm-5f53fceff01558582fbd4c7bd7bd1dc9a4fbdb90.tar.gz
bcm5719-llvm-5f53fceff01558582fbd4c7bd7bd1dc9a4fbdb90.zip
test: Rename string_op+= to string_op_plus_equal. Windows git doesn't like it.
llvm-svn: 121265
Diffstat (limited to 'libcxx/test/strings/basic.string/string.modifiers/string_op+=/char.pass.cpp')
-rw-r--r--libcxx/test/strings/basic.string/string.modifiers/string_op+=/char.pass.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/libcxx/test/strings/basic.string/string.modifiers/string_op+=/char.pass.cpp b/libcxx/test/strings/basic.string/string.modifiers/string_op+=/char.pass.cpp
deleted file mode 100644
index 8c27f3b812b..00000000000
--- a/libcxx/test/strings/basic.string/string.modifiers/string_op+=/char.pass.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <string>
-
-// basic_string<charT,traits,Allocator>& operator+=(charT c);
-
-#include <string>
-#include <cassert>
-
-template <class S>
-void
-test(S s, typename S::value_type str, S expected)
-{
- s += str;
- assert(s.__invariants());
- assert(s == expected);
-}
-
-int main()
-{
- typedef std::string S;
- test(S(), 'a', S("a"));
- test(S("12345"), 'a', S("12345a"));
- test(S("1234567890"), 'a', S("1234567890a"));
- test(S("12345678901234567890"), 'a', S("12345678901234567890a"));
-}
OpenPOWER on IntegriCloud