doxygen/testing/057_inlinenamespace.cpp
albert-github a32a778635 Doxygen warnings are not seen as errors during running tests
Corrected warnings of test 57.
2020-11-22 13:25:09 +01:00

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 {}
}
}