mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 23:51:26 +00:00
Changed __config to react to all of clang's currently documented has_feature flags, and renamed _LIBCPP_MOVE to _LIBCPP_HAS_NO_RVALUE_REFERENCES to be more consistent with the rest of the libc++'s flags, and with clang's nomenclature.
llvm-svn: 113086
This commit is contained in:
1 parent
edbdff64c7
commit
7609c9b665
404 files changed
+1688
-1557
No files matched your search
+2
-2
@@ -16,11 +16,11 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
#ifdef _LIBCPP_MOVE
|
||||
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
{
|
||||
std::string s("123def456");
|
||||
s.replace(s.begin() + 3, s.begin() + 6, {'a', 'b', 'c'});
|
||||
assert(s == "123abc456");
|
||||
}
|
||||
#endif // _LIBCPP_MOVE
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
}
|
||||
Reference in new issue
Block a user