Author: vitek Date: Wed Jun 4 16:15:07 2008 New Revision: 663410 URL: http://svn.apache.org/viewvc?rev=663410&view=rev Log: 2008-06-04 Travis Vitek <[EMAIL PROTECTED]>
STDCXX-872 * tests/support/18.support.rtti.cpp [__IBMCPP__]: Avoid testing typeid() if rtti support is disabled. Modified: stdcxx/branches/4.2.x/tests/support/18.support.rtti.cpp Modified: stdcxx/branches/4.2.x/tests/support/18.support.rtti.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/support/18.support.rtti.cpp?rev=663410&r1=663409&r2=663410&view=diff ============================================================================== --- stdcxx/branches/4.2.x/tests/support/18.support.rtti.cpp (original) +++ stdcxx/branches/4.2.x/tests/support/18.support.rtti.cpp Wed Jun 4 16:15:07 2008 @@ -97,6 +97,13 @@ _RWSTD_UNUSED (p_name); } +#if defined (__IBMCPP__) && !defined (__RTTI_TYPE_INFO__) + + rw_warn (0, 0, __LINE__, + "not testing type_info; rtti is disabled"); + +#else // !__IBMCPP__ || __RTTI_TYPE_INFO__ + if (1) { // exercise 18.5.1, class type_info functionality D1 d1; @@ -179,6 +186,8 @@ d1_name, d2_name); } +#endif // !__IBMCPP__ || __RTTI_TYPE_INFO__ + if (1) { // exercise 18.5.2, class bad_cast interface