repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[flang] Fix length handling in character kind implicit conversion (#74586)
[llvm-project.git]
/
lldb
/
test
/
Shell
/
SymbolFile
/
PDB
/
Inputs
/
ExpressionsTest.cpp
blob
3785cd3c64c777e0fc6951e101f3eedf9d6e00fe
1
namespace
N0
{
2
namespace
N1
{
3
4
char
*
buf0
=
nullptr
;
5
char
buf1
[] = {
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
};
6
7
char
sum
(
char
*
buf
,
int
size
) {
8
char
result
=
0
;
9
for
(
int
i
=
0
;
i
<
size
;
i
++)
10
result
+=
buf
[
i
];
11
return
result
;
12
}
13
14
}
// namespace N1
15
}
// namespace N0
16
17
int
main
() {
18
char
result
=
N0
::
N1
::
sum
(
N0
::
N1
::
buf1
,
sizeof
(
N0
::
N1
::
buf1
));
19
return
0
;
20
}