summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/test/elidestringvar.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/test/elidestringvar.cxx')
-rw-r--r--compilerplugins/clang/test/elidestringvar.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/test/elidestringvar.cxx b/compilerplugins/clang/test/elidestringvar.cxx
index bc0de05c999e..1835c183bb39 100644
--- a/compilerplugins/clang/test/elidestringvar.cxx
+++ b/compilerplugins/clang/test/elidestringvar.cxx
@@ -18,8 +18,9 @@ OUString f(sal_Unicode c, int n)
OUString s2('a');
// expected-note@+1 {{literal OUString variable defined here [loplugin:elidestringvar]}}
OUString s3(u'a');
+ static constexpr OUStringLiteral s4lit(u"a");
// expected-note@+1 {{literal OUString variable defined here [loplugin:elidestringvar]}}
- OUString s4 = OUStringLiteral(u"a");
+ OUString s4 = s4lit;
switch (n)
{
case 1: