diff options
Diffstat (limited to 'compilerplugins/clang/test/unnecessarygetstr.cxx')
-rw-r--r-- | compilerplugins/clang/test/unnecessarygetstr.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/unnecessarygetstr.cxx b/compilerplugins/clang/test/unnecessarygetstr.cxx index c0960557a89b..bdb58cde2ef7 100644 --- a/compilerplugins/clang/test/unnecessarygetstr.cxx +++ b/compilerplugins/clang/test/unnecessarygetstr.cxx @@ -10,6 +10,7 @@ #include <sal/config.h> #include <ostream> +#include <sstream> #include <string_view> #include <string> @@ -128,4 +129,10 @@ void foo(const OString&); void test(std::string v) { foo(v.c_str()); } } +// no warning expected +namespace test7 +{ +void test(const OString& v) { std::stringstream aStream(v.getStr()); } +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |