diff --git a/tests/any/anytest.cpp b/tests/any/anytest.cpp index 156ba08689..36109d5c98 100644 --- a/tests/any/anytest.cpp +++ b/tests/any/anytest.cpp @@ -729,7 +729,7 @@ void wxAnyTestCase::Misc() } wxAny any2 = any; - CPPUNIT_ASSERT( any2.As().GetValue() == 15 ); + CPPUNIT_ASSERT( wxANY_AS(any2, MyClass).GetValue() == 15 ); } // Make sure allocations and deallocations match