Fix PR#30303 - no matching function for call to '__ptr_in_range'

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@280779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2016-09-07 03:32:06 +00:00
parent db4d7e96ca
commit ac655ef742
5 changed files with 47 additions and 1 deletions

View File

@@ -196,4 +196,13 @@ int main()
s_long.assign(s_long.begin() + 30, s_long.end());
assert(s_long == "nsectetur/");
}
{ // test assigning a different type
typedef std::string S;
const uint8_t p[] = "ABCD";
S s;
s.assign(p, p + 4);
assert(s == "ABCD");
}
}