blob: 396aaedd2418dd650ab8ad33c845855db9806694 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Wang Nan87095f72016-09-26 07:26:56 +00002#include <iostream>
3#include <memory>
4
5static void print_str(std::string s)
6{
7 std::cout << s << std::endl;
8}
9
10int main()
11{
12 std::string s("Hello World!");
13 print_str(std::move(s));
14 std::cout << "|" << s << "|" << std::endl;
15 return 0;
16}