added manual test for new Char copy-on-write mechanic
This commit is contained in:
parent
4a1709d626
commit
53efe34ed1
@ -26,4 +26,5 @@ int main()
|
|||||||
String str5 = str2;
|
String str5 = str2;
|
||||||
str5[0] = 'i';
|
str5[0] = 'i';
|
||||||
std::cout << str5 << std::endl;
|
std::cout << str5 << std::endl;
|
||||||
|
std::cout << str2 << std::endl;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user