llvm-project
11 строк · 391.0 Байт
1// RUN: %clang_cc1 -fsyntax-only -verify -x objective-c++ -std=c++11 %s
2
3void foo() {
4int bar;
5auto baz = [
6bar( // expected-note 2{{to match this '('}}\
7// expected-warning {{captures are a C++14 extension}}
8foo_undeclared() // expected-error{{use of undeclared identifier 'foo_undeclared'}}
9/* ) */
10] () { }; // expected-error 2{{expected ')'}}
11}