summaryrefslogtreecommitdiff
path: root/sal/qa
diff options
context:
space:
mode:
Diffstat (limited to 'sal/qa')
-rw-r--r--sal/qa/rtl/strings/test_oustring_stringliterals.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
index 9b85b314c85f..825e7d84ad25 100644
--- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
+++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
@@ -192,6 +192,20 @@ void test::oustring::StringLiterals::checkOUStringLiteral()
void test::oustring::StringLiterals::checkOUStringLiteral1()
{
+ auto l1 = rtlunittest::OUStringLiteral1<'A'>();
+ CPPUNIT_ASSERT_EQUAL('A', l1.c);
+
+ char const c2 = 'A';
+ auto l2 = rtlunittest::OUStringLiteral1<c2>();
+ CPPUNIT_ASSERT_EQUAL('A', l2.c);
+
+ // char c3 = 'A'; auto l3 = rtlunittest::OUStringLiteral1<c3>();
+
+ auto l4 = rtlunittest::OUStringLiteral1<sal_Unicode('A')>();
+ CPPUNIT_ASSERT_EQUAL('A', l4.c);
+
+ // auto l5 = rtlunittest::OUStringLiteral1<sal_Unicode(0x100)>();
+
rtl::OUString s1;
s1 = rtlunittest::OUStringLiteral1<'A'>();
CPPUNIT_ASSERT_EQUAL(sal_Int32(1), s1.getLength());