mirror of
https://github.com/siemens-mobile-hacks/doxygen.git
synced 2026-11-25 22:27:34 +00:00
37 lines
758 B
C++
37 lines
758 B
C++
// objective: test inline namespaces
|
|
// check: namespacelibrary.xml
|
|
// check: namespacelibrary_1_1v1.xml
|
|
// check: namespacelibrary_1_1v2.xml
|
|
|
|
/// the main namespace
|
|
namespace library
|
|
{
|
|
/// the first namespace
|
|
namespace v1
|
|
{
|
|
/// the class
|
|
class foo {
|
|
public:
|
|
/// member of the class
|
|
void member();
|
|
};
|
|
/// a method
|
|
void func();
|
|
/// a namespace
|
|
namespace NS {}
|
|
}
|
|
/// the inline namespace
|
|
inline namespace v2
|
|
{
|
|
/// the class
|
|
class foo {
|
|
public:
|
|
/// member of the class
|
|
void member();
|
|
};
|
|
/// a method
|
|
void func();
|
|
/// a namespace
|
|
namespace NS {}
|
|
}
|
|
}
|