From 392e4fbdd9b152efff4c051286f6b2c21270c902 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 18 Apr 2012 21:39:23 +0000 Subject: Creating release_31 branch llvm-svn: 155059 llvm-svn: 155053 llvm-svn: 155051 --- .../string_assign/pointer.pass.cpp | 42 ---------------------- 1 file changed, 42 deletions(-) delete mode 100644 libcxx/test/strings/basic.string/string.modifiers/string_assign/pointer.pass.cpp (limited to 'libcxx/test/strings/basic.string/string.modifiers/string_assign/pointer.pass.cpp') diff --git a/libcxx/test/strings/basic.string/string.modifiers/string_assign/pointer.pass.cpp b/libcxx/test/strings/basic.string/string.modifiers/string_assign/pointer.pass.cpp deleted file mode 100644 index 9370666a8176..000000000000 --- a/libcxx/test/strings/basic.string/string.modifiers/string_assign/pointer.pass.cpp +++ /dev/null @@ -1,42 +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. -// -//===----------------------------------------------------------------------===// - -// - -// basic_string& assign(const charT* s); - -#include -#include -#include - -template -void -test(S s, const typename S::value_type* str, S expected) -{ - s.assign(str); - assert(s.__invariants()); - assert(s == expected); -} - -int main() -{ - typedef std::string S; - test(S(), "", S()); - test(S(), "12345", S("12345")); - test(S(), "12345678901234567890", S("12345678901234567890")); - - test(S("12345"), "", S()); - test(S("12345"), "12345", S("12345")); - test(S("12345"), "1234567890", S("1234567890")); - - test(S("12345678901234567890"), "", S()); - test(S("12345678901234567890"), "12345", S("12345")); - test(S("12345678901234567890"), "12345678901234567890", - S("12345678901234567890")); -} -- cgit v1.2.3