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
mm, oom: do not rely on TIF_MEMDIE for memory reserves access
[linux/fpc-iii.git]
/
tools
/
build
/
feature
/
test-cxx.cpp
blob
b1dee9a31d6cb1b9517569a532e01d5743b1ee8a
1
#include <iostream>
2
#include <memory>
3
4
static void
print_str
(
std
::
string s
)
5
{
6
std
::
cout
<<
s
<<
std
::
endl
;
7
}
8
9
int
main
()
10
{
11
std
::
string
s
(
"Hello World!"
);
12
print_str
(
std
::
move
(
s
));
13
std
::
cout
<<
"|"
<<
s
<<
"|"
<<
std
::
endl
;
14
return
0
;
15
}