repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git]
/
tools
/
build
/
feature
/
test-cxx.cpp
blob
396aaedd2418dd650ab8ad33c845855db9806694
1
// SPDX-License-Identifier: GPL-2.0
2
#include <iostream>
3
#include <memory>
4
5
static void
print_str
(
std
::
string s
)
6
{
7
std
::
cout
<<
s
<<
std
::
endl
;
8
}
9
10
int
main
()
11
{
12
std
::
string
s
(
"Hello World!"
);
13
print_str
(
std
::
move
(
s
));
14
std
::
cout
<<
"|"
<<
s
<<
"|"
<<
std
::
endl
;
15
return
0
;
16
}