mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 02:41:18 +00:00
Implement LWG 2946, 3075 and 3076. Reviewed as https://reviews.llvm.org/D48616
llvm-svn: 336132
This commit is contained in:
1 parent
f50ad6c311
commit
76b26852b6
28 files changed
+755
-148
No files matched your search
+9
@@ -281,4 +281,13 @@ int main()
|
||||
test2<S>();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if TEST_STD_VER > 3
|
||||
{ // LWG 2946
|
||||
std::string s = " ";
|
||||
s.replace(s.cbegin(), s.cend(), {"abc", 1});
|
||||
assert(s.size() == 1);
|
||||
assert(s == "a");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
+9
@@ -379,4 +379,13 @@ int main()
|
||||
test2<S>();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if TEST_STD_VER > 3
|
||||
{ // LWG 2946
|
||||
std::string s = " ";
|
||||
s.replace(0, 1, {"abc", 1});
|
||||
assert(s.size() == 1);
|
||||
assert(s == "a");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Block a user