1 // RUN: %clang_cc1 -fsyntax-only -verify -x objective-c++ -std=c++11 %s 2 foo()3void 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 ')'}} 11 }