Added class diagram test case with C++20 module partitions
This commit is contained in:
13
tests/t00072/src/lib1.cppm
Normal file
13
tests/t00072/src/lib1.cppm
Normal file
@@ -0,0 +1,13 @@
|
||||
export module t00072.app:lib1;
|
||||
|
||||
export namespace clanguml::t00072 {
|
||||
class B { };
|
||||
|
||||
template <typename T> class BB {
|
||||
T t;
|
||||
};
|
||||
|
||||
namespace detail {
|
||||
enum class BBB { bbb1, bbb2 };
|
||||
} // namespace detail
|
||||
}
|
||||
5
tests/t00072/src/lib1mod1.cppm
Normal file
5
tests/t00072/src/lib1mod1.cppm
Normal file
@@ -0,0 +1,5 @@
|
||||
export module t00072.app:lib1.mod1;
|
||||
|
||||
export namespace clanguml::t00072 {
|
||||
class D { };
|
||||
}
|
||||
5
tests/t00072/src/lib1mod2.cppm
Normal file
5
tests/t00072/src/lib1mod2.cppm
Normal file
@@ -0,0 +1,5 @@
|
||||
export module t00072.app:lib1.mod2;
|
||||
|
||||
export namespace clanguml::t00072 {
|
||||
class E { };
|
||||
}
|
||||
13
tests/t00072/src/lib2.cppm
Normal file
13
tests/t00072/src/lib2.cppm
Normal file
@@ -0,0 +1,13 @@
|
||||
export module t00072.app:lib2;
|
||||
|
||||
export namespace clanguml::t00072 {
|
||||
class C { };
|
||||
|
||||
template <typename T> class CC {
|
||||
T t;
|
||||
};
|
||||
|
||||
namespace detail {
|
||||
enum class CCC { ccc1, ccc2 };
|
||||
}
|
||||
}
|
||||
13
tests/t00072/src/t00072_mod.cppm
Normal file
13
tests/t00072/src/t00072_mod.cppm
Normal file
@@ -0,0 +1,13 @@
|
||||
export module t00072.app;
|
||||
export import :lib1;
|
||||
export import :lib1.mod1;
|
||||
export import :lib1.mod2;
|
||||
export import :lib2;
|
||||
|
||||
export namespace clanguml::t00072 {
|
||||
class A {
|
||||
int get() { return a; }
|
||||
|
||||
int a;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user