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