Files
clang-p2996/lldb/test/Shell/SymbolFile/PDB/Inputs/ExpressionsTest.cpp
Jonas Devlieghere 87aa9c9e4d Re-land "[test] Split LLDB tests into API, Shell & Unit"
The original patch got reverted because it broke `check-lldb` on a clean
build. This fixes that.

llvm-svn: 374201
2019-10-09 19:22:02 +00:00

21 lines
349 B
C++

namespace N0 {
namespace N1 {
char *buf0 = nullptr;
char buf1[] = {0, 1, 2, 3, 4, 5, 6, 7};
char sum(char *buf, int size) {
char result = 0;
for (int i = 0; i < size; i++)
result += buf[i];
return result;
}
} // namespace N1
} // namespace N0
int main() {
char result = N0::N1::sum(N0::N1::buf1, sizeof(N0::N1::buf1));
return 0;
}