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

@@ -186,4 +186,12 @@ int main()
assert(s_long == "Lorem ipsum dolor sit amet, consectetur/Lorem ipsum dolor sit amet, consectetur/");
}
{ // test assigning a different type
typedef std::string S;
const uint8_t p[] = "ABCD";
S s;
s.insert(s.begin(), p, p + 4);
assert(s == "ABCD");
}
}