You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// SPDX-License-Identifier: GPL-2.0
|
|
#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;
|
|
}
|
|
|