// { dg-do run { xfail sparc64-*-elf arm-*-pe**-* } }// { dg-options "-fexceptions -w" }// Ensure that the return type of dynamic_cast is the real type.structB{virtualintf(){}};structD:publicB{virtualintf(){}inti;}od;main(){B*b=&od;if(dynamic_cast<D*>(b)->i)return1;return0;}