summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cppu/qa/test_any.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/cppu/qa/test_any.cxx b/cppu/qa/test_any.cxx
index ebec9998d1d6..4cf9d181984f 100644
--- a/cppu/qa/test_any.cxx
+++ b/cppu/qa/test_any.cxx
@@ -1881,6 +1881,13 @@ void Test::testSequence() {
CPPUNIT_ASSERT_MESSAGE("Interface1", !(a >>= b));
CPPUNIT_ASSERT_EQUAL_MESSAGE("Interface1", i, b);
}
+ {
+ // The two default-constructed sequences both refer to the same static cppu::g_emptySeq
+ css::uno::Sequence<sal_Int32> aEmptyIntSequence;
+ css::uno::Sequence<OUString> aEmptyStringSequence;
+ a <<= aEmptyStringSequence;
+ CPPUNIT_ASSERT(!(a >>= aEmptyIntSequence));
+ }
}
void Test::testEnum() {