Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <iostream>
0003 #include <memory>
0004 
0005 static void print_str(std::string s)
0006 {
0007     std::cout << s << std::endl;
0008 }
0009 
0010 int main()
0011 {
0012     std::string s("Hello World!");
0013     print_str(std::move(s));
0014     std::cout << "|" << s << "|" << std::endl;
0015     return 0;
0016 }