brintos

brintos / llvm-project-archived public Read only

0
0
Text · 391 B · 221cae9 Raw
11 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -x objective-c++ -std=c++11 %s2 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}