Added test case for context filter outward direction (#274)
This commit is contained in:
69
tests/t00077/t00077.cc
Normal file
69
tests/t00077/t00077.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
namespace clanguml {
|
||||
namespace t00077 {
|
||||
|
||||
enum Color { red, green, blue };
|
||||
|
||||
struct F;
|
||||
struct GG { };
|
||||
struct G {
|
||||
GG gg;
|
||||
};
|
||||
struct GGG {
|
||||
G g;
|
||||
};
|
||||
struct H { };
|
||||
struct J { };
|
||||
|
||||
struct Base { };
|
||||
|
||||
struct A : public Base { };
|
||||
|
||||
struct B : public A {
|
||||
F *f;
|
||||
Color c;
|
||||
G g;
|
||||
/// @uml{composition[0..1:1..*]}
|
||||
J j;
|
||||
|
||||
void a(H *h) { (void)h; }
|
||||
};
|
||||
|
||||
struct C : public B { };
|
||||
|
||||
struct D : public C { };
|
||||
|
||||
struct EE { };
|
||||
|
||||
struct E {
|
||||
B *b;
|
||||
EE *ee;
|
||||
};
|
||||
|
||||
struct EEE {
|
||||
E *e;
|
||||
};
|
||||
|
||||
struct FF { };
|
||||
struct F {
|
||||
FF *ff;
|
||||
};
|
||||
struct FFF {
|
||||
F *f;
|
||||
};
|
||||
|
||||
struct I {
|
||||
void i(B *b) { (void)b; }
|
||||
};
|
||||
|
||||
struct KKK { };
|
||||
|
||||
struct K {
|
||||
B b;
|
||||
KKK kkk;
|
||||
};
|
||||
|
||||
struct KK {
|
||||
K k;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user