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.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/057_inlinenamespace.cpp b/testing/057_inlinenamespace.cpp
new file mode 100644
index 0000000..e3ac869
--- /dev/null
+++ b/testing/057_inlinenamespace.cpp
@@ -0,0 +1,19 @@
+// objective: test inline namespaces
+// check: namespacelibrary.xml
+// check: namespacelibrary_1_1v1.xml
+// check: namespacelibrary_1_1v2.xml
+namespace library
+{
+ namespace v1
+ {
+ class foo { public: void member(); };
+ void func();
+ namespace NS {}
+ }
+ inline namespace v2
+ {
+ class foo { public: void member(); };
+ void func();
+ namespace NS {}
+ }
+}