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

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