[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CXX / expr / expr.prim / expr.prim.lambda / p15.cpp
blobb4b1605ab0025e4be6f55c324a8b203cceb7f6ea
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2 // expected-no-diagnostics
4 class NonCopyable {
5 NonCopyable(const NonCopyable&);
6 };
8 void capture_by_ref(NonCopyable nc, NonCopyable &ncr) {
9 int array[3];
10 (void)[&nc] () -> void {};
11 (void)[&ncr] () -> void {};
12 (void)[&array] () -> void {};