cppu/qa/test_any.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 370c9d725a8b026fa6454b7ffb43dc58c868594c
Author: Mike Kaganski <[email protected]>
AuthorDate: Tue Oct 26 10:24:50 2021 +0300
Commit: Mike Kaganski <[email protected]>
CommitDate: Tue Oct 26 21:37:09 2021 +0200
d46f659c7524625474f0bb907805e285ee27d5ec follow-up: add unit test
Change-Id: I34be2bc813bf0d62cac935a84c6371cd64ee68f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124168
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <[email protected]>
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() {