Files
clang-p2996/lldb/test/API/functionalities/breakpoint/same_cu_name/main.cpp
jimingham 803f957e87 Fix a thinko in the CallSite handling code: (#114896)
I have to check for the sc list size being changed by the call-site
search, not just that it had more than one element.

Added a test for multiple CU's with the same name in a given module,
which would have caught this mistake.

We were also doing all the work to find call sites when the found decl
and specified decl's only difference was a column, but the incoming
specification hadn't specified a column (column number == 0).
2024-11-05 11:23:23 -08:00

25 lines
322 B
C++

namespace ns1 {
extern void DoSomeStuff();
}
namespace ns2 {
extern void DoSomeStuff();
}
namespace ns3 {
extern void DoSomeStuff();
}
namespace ns4 {
extern void DoSomeStuff();
}
int main(int argc, char *argv[]) {
ns1::DoSomeStuff();
ns2::DoSomeStuff();
ns3::DoSomeStuff();
ns4::DoSomeStuff();
return 0;
}