mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-09 15:46:09 +00:00

Reland https://reviews.llvm.org/D76696 All known crashes have been fixed, another attemption. We have rolled out this to all internal users for a while, didn't see big issues, we consider it is stable enough. Reviewed By: sammccall Subscribers: rsmith, hubert.reinterpretcast, ebevhan, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D78350
11 lines
391 B
C++
11 lines
391 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify -x objective-c++ -std=c++11 %s
|
|
|
|
void foo() {
|
|
int bar;
|
|
auto baz = [
|
|
bar( // expected-note 2{{to match this '('}}\
|
|
// expected-warning {{captures are a C++14 extension}}
|
|
foo_undeclared() // expected-error{{use of undeclared identifier 'foo_undeclared'}}
|
|
/* ) */
|
|
] () { }; // expected-error 2{{expected ')'}}
|
|
} |