teak-llvm/lldb/packages/Python/lldbsuite/test/expression_command/inline-namespace/main.cpp
Raphael Isemann a946997c24 Correctly look up declarations in inline namespaces
Summary:
This patch marks the inline namespaces from DWARF as inline and also ensures that looking
up declarations now follows the lookup rules for inline namespaces.

Reviewers: aprantl, shafik, serge-sans-paille

Reviewed By: aprantl

Subscribers: eraman, jdoerfert, lldb-commits

Tags: #c_modules_in_lldb, #lldb

Differential Revision: https://reviews.llvm.org/D59198

llvm-svn: 355897
2019-03-12 07:45:04 +00:00

11 lines
159 B
C++

namespace A {
inline namespace B {
int f() { return 3; }
};
}
int main(int argc, char **argv) {
// Set break point at this line.
return A::f();
}