Disable numeric_limits<wxLongLong> test for VC6.
VC6 doesn't specialize numeric_limits<> for its __int64 so it's not specialized for wxLongLong neither when using this compiler. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
48611b8fc2
commit
dff485d079
1 changed files with 4 additions and 0 deletions
|
|
@ -341,6 +341,9 @@ void LongLongTestCase::LoHi()
|
|||
|
||||
void LongLongTestCase::Limits()
|
||||
{
|
||||
// VC6 doesn't specialize numeric_limits<> for __int64 so skip this test
|
||||
// for it.
|
||||
#ifndef __VISUALC6__
|
||||
#if wxUSE_LONGLONG_NATIVE
|
||||
CPPUNIT_ASSERT( std::numeric_limits<wxLongLong>::is_specialized );
|
||||
CPPUNIT_ASSERT( std::numeric_limits<wxULongLong>::is_specialized );
|
||||
|
|
@ -348,6 +351,7 @@ void LongLongTestCase::Limits()
|
|||
wxULongLong maxval = std::numeric_limits<wxULongLong>::max();
|
||||
CPPUNIT_ASSERT( maxval.ToDouble() > 0 );
|
||||
#endif // wxUSE_LONGLONG_NATIVE
|
||||
#endif // !__VISUALC6__
|
||||
}
|
||||
|
||||
#endif // wxUSE_LONGLONG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue