%description: Test the check_and_cast() function. %activity: // create a cMessage cOwnedObject *msg = new cMessage("msg"); // we shouldn't be able to cast it to a derived type which it is actually not check_and_cast(msg); EV << "fell through\n" << endl; %exitcode: 1 %contains: stderr Cannot cast %not-contains: stdout fell through