diff options
Diffstat (limited to 'sal/qa/rtl/strings')
-rw-r--r-- | sal/qa/rtl/strings/test_oustring_stringliterals.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx index ddac4d62e35f..20706980c3f9 100644 --- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx +++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx @@ -180,6 +180,9 @@ void test::oustring::StringLiterals::checkBuffer() CPPUNIT_ASSERT_EQUAL( buf.toString(), rtl::OUString( "foobar" )); buf.insert( 3, "baz" ); CPPUNIT_ASSERT_EQUAL( buf.toString(), rtl::OUString( "foobazbar" )); + char d[] = "d"; + CPPUNIT_ASSERT( !VALID_CONVERSION( buf.append( d ))); + CPPUNIT_ASSERT( !VALID_CONVERSION( buf.insert( 0, d ))); } }} // namespace |