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

llvm-svn: 280779
This commit is contained in:
Marshall Clow
2016-09-07 03:32:06 +00:00
parent a7ade33d16
commit a77bb8ef34
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");
}
}