diff options
Diffstat (limited to 'compilerplugins/clang/test/sequenceloop.cxx')
-rw-r--r-- | compilerplugins/clang/test/sequenceloop.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/sequenceloop.cxx b/compilerplugins/clang/test/sequenceloop.cxx index e124fda27093..41cb32f0495a 100644 --- a/compilerplugins/clang/test/sequenceloop.cxx +++ b/compilerplugins/clang/test/sequenceloop.cxx @@ -30,6 +30,15 @@ void foo2(const css::uno::Sequence<css::uno::Reference<css::uno::XInterface>>& a for (const auto& x : aSeq) x.get(); } + +css::uno::Sequence<css::uno::Reference<css::uno::XInterface>> getSequenceByValue(); + +// no warning expected +void foo3() +{ + for (const auto& x : getSequenceByValue()) + x.get(); +} }; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |