2017-11-07 01:42:17 +08:00
// RUN: %clang_cc1 -fsyntax-only -verify -x objective-c++ -std=c++11 %s
2020-03-26 23:07:50 +08:00
void foo ( ) { // expected-note {{to match this '{'}}
2017-11-07 01:42:17 +08:00
int bar ;
auto baz = [
2020-03-26 23:07:50 +08:00
bar ( // expected-note {{to match this '('}} expected-note {{to match this '('}}
2019-05-21 02:01:54 +08:00
foo_undeclared ( ) // expected-error{{use of undeclared identifier 'foo_undeclared'}}
2017-11-07 01:42:17 +08:00
/* ) */
2020-03-26 23:07:50 +08:00
] ( ) { } ; // expected-error{{expected ')'}}
} // expected-error{{expected ')'}} expected-error {{expected ',' or ']'}} expected-error{{expected ';' at end of declaration}} expected-error{{expected '}'}}