1 // RUN: %clang_cc1 -fsyntax-only -verify -x objective-c++ -std=c++11 %s 2 3 void foo() { // expected-note {{to match this '{'}} 4 int bar; 5 auto baz = [ 6 bar( // expected-note {{to match this '('}} expected-note {{to match this '('}} 7 foo_undeclared() // expected-error{{use of undeclared identifier 'foo_undeclared'}} expected-error{{use of undeclared identifier 'foo_undeclared'}} 8 /* ) */ 9 ] () { }; // expected-error{{expected ')'}} 10 } // expected-error{{expected ')'}} expected-error{{expected ';' at end of declaration}} expected-error{{expected '}'}} 11