2017-11-01 15:07:57 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2016-09-26 07:26:56 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
|
|
static void print_str(std::string s)
|
|
|
|
|
{
|
|
|
|
|
std::cout << s << std::endl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
std::string s("Hello World!");
|
|
|
|
|
print_str(std::move(s));
|
|
|
|
|
std::cout << "|" << s << "|" << std::endl;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|