%description: Check inheriting from a cOwnedObject-rooted class %file: test.msg namespace @TESTNAME@; class Base extends cOwnedObject { int b; } class MyClass extends Base { char c; }; %includes: #include "test_m.h" %activity: #define PRINT(X) EV << #X << ":" << X << endl MyClass x("myclass"); EV << (dynamic_cast(&x)!=0 ? "cOwnedObject" : "generic") << endl; EV << x.getClassName() << ":" << x.getName() << endl; x.setB(11); PRINT(x.getB()); x.setC('x'); PRINT(x.getC()); %contains: stdout cOwnedObject msg_cobject_inherit_1::MyClass:myclass x.getB():11 x.getC():x