[flang] Fix length handling in character kind implicit conversion (#74586)
[llvm-project.git] / lldb / test / Shell / SymbolFile / PDB / Inputs / ExpressionsTest.cpp
blob3785cd3c64c777e0fc6951e101f3eedf9d6e00fe
1 namespace N0 {
2 namespace N1 {
4 char *buf0 = nullptr;
5 char buf1[] = {0, 1, 2, 3, 4, 5, 6, 7};
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;
14 } // namespace N1
15 } // namespace N0
17 int main() {
18 char result = N0::N1::sum(N0::N1::buf1, sizeof(N0::N1::buf1));
19 return 0;