diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-26 10:24:50 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-26 21:37:09 +0200 |
commit | 370c9d725a8b026fa6454b7ffb43dc58c868594c (patch) | |
tree | f99e644bc634242057b968e53949e709460392c8 /cppu | |
parent | 637d29fa8e0f5b04129244f993c6bb487e8510d8 (diff) |
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/qa/test_any.cxx | 7 |
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() { |