summaryrefslogtreecommitdiffstats
path: root/testing/057_inlinenamespace.cpp
blob: e3ac8695c147b2b0c51b0a3d3fb34f1c5d9efb1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 {}
    }
}