[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Parser / objcxx11-invalid-lambda.cpp
blob221cae9b907093da5c45a91081e5950d4474952a
1 // RUN: %clang_cc1 -fsyntax-only -verify -x objective-c++ -std=c++11 %s
3 void foo() {
4 int bar;
5 auto baz = [
6 bar( // expected-note 2{{to match this '('}}\
7 // expected-warning {{captures are a C++14 extension}}
8 foo_undeclared() // expected-error{{use of undeclared identifier 'foo_undeclared'}}
9 /* ) */
10 ] () { }; // expected-error 2{{expected ')'}}