summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/test/passstuffbyref.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/test/passstuffbyref.cxx')
-rw-r--r--compilerplugins/clang/test/passstuffbyref.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/compilerplugins/clang/test/passstuffbyref.cxx b/compilerplugins/clang/test/passstuffbyref.cxx
index 7c31af77df77..89f51fb1c294 100644
--- a/compilerplugins/clang/test/passstuffbyref.cxx
+++ b/compilerplugins/clang/test/passstuffbyref.cxx
@@ -19,11 +19,13 @@ struct S {
};
-void f() // expected-error {{Unreferenced externally visible function definition [loplugin:unreffun]}}
+void f()
{
S* s;
OUString v1, v2;
s = new S(v1, v2);
}
+// expected-no-diagnostics
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */