summaryrefslogtreecommitdiffstats
path: root/testing/057_inlinenamespace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/057_inlinenamespace.cpp')
-rw-r--r--testing/057_inlinenamespace.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/057_inlinenamespace.cpp b/testing/057_inlinenamespace.cpp
new file mode 100644
index 0000000..337c4b1
--- /dev/null
+++ b/testing/057_inlinenamespace.cpp
@@ -0,0 +1,37 @@
+// 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 {}
+ }
+}