mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 08:20:28 +00:00
Uncomment swap test
This commit is contained in:
parent
0a92c78035
commit
afd2fdbf64
1 changed files with 7 additions and 7 deletions
|
@ -259,13 +259,13 @@ main()
|
|||
return 55;
|
||||
}
|
||||
|
||||
// {
|
||||
// ctl::string s = "hello";
|
||||
// ctl::string s2 = "world";
|
||||
// s.swap(s2);
|
||||
// if (s != "world" || s2 != "hello")
|
||||
// return 56;
|
||||
// }
|
||||
{
|
||||
ctl::string s = "hello";
|
||||
ctl::string s2 = "world";
|
||||
s.swap(s2);
|
||||
if (s != "world" || s2 != "hello")
|
||||
return 56;
|
||||
}
|
||||
|
||||
{
|
||||
ctl::string s = "hello";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue