diff options
Diffstat (limited to 'compilerplugins/clang/test/rangedforcopy.cxx')
-rw-r--r-- | compilerplugins/clang/test/rangedforcopy.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/rangedforcopy.cxx b/compilerplugins/clang/test/rangedforcopy.cxx index f4346b18111d..e9a836e2489c 100644 --- a/compilerplugins/clang/test/rangedforcopy.cxx +++ b/compilerplugins/clang/test/rangedforcopy.cxx @@ -7,6 +7,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <vector> + struct S { int i1; @@ -27,4 +29,12 @@ void f(S const (&a)[2]) } } +void f(std::vector<bool> const& v) +{ + for (auto b : v) + { + (void)b; + } +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |