Kaydet (Commit) 6880e2d3 authored tarafından Luboš Luňák's avatar Luboš Luňák

hack for apple's gcc-4.0.1 bug

My self-built 4.0.1 on Linux handles this fine, but 4.0.1 is not used
for LO building except for MacOSX. This specific operand combination
is rather unlikely, so this shouldn't actually cause any problem
in practice, hopefully, but I'd still like to check this where possible.
üst 4b1db520
......@@ -83,8 +83,10 @@ void test::ostring::StringConcat::checkConcat()
TYPES_ASSERT_EQUAL(( typeid( OStringConcat< OString, const char* > )), typeid( OString( "foo" ) + d3 ));
CPPUNIT_ASSERT_EQUAL( OString( "fooabc" ), OString( OString( "foo" ) + d4 ));
TYPES_ASSERT_EQUAL(( typeid( OStringConcat< OString, char* > )), typeid( OString( "foo" ) + d4 ));
#if __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ > 1 )
CPPUNIT_ASSERT_EQUAL( OString( "foobar" ), OString( OStringBuffer( "foo" ) + OString( "bar" )));
TYPES_ASSERT_EQUAL(( typeid( OStringConcat< OStringBuffer, OString > )), typeid( OStringBuffer( "foo" ) + OString( "bar" )));
#endif
}
#undef typeid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment