2017-11-07 01:42:17 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -x objective-c++ -std=c++11 %s
|
|
|
|
|
[AST][RecoveryExpr] Build recovery expressions by default for C++.
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
2020-04-23 17:14:01 +08:00
|
|
|
void foo() {
|
2017-11-07 01:42:17 +08:00
|
|
|
int bar;
|
|
|
|
auto baz = [
|
[AST][RecoveryExpr] Build recovery expressions by default for C++.
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
2020-04-23 17:14:01 +08:00
|
|
|
bar( // expected-note 2{{to match this '('}}\
|
|
|
|
// expected-warning {{captures are a C++14 extension}}
|
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
|
|
|
/* ) */
|
[AST][RecoveryExpr] Build recovery expressions by default for C++.
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
2020-04-23 17:14:01 +08:00
|
|
|
] () { }; // expected-error 2{{expected ')'}}
|
|
|
|
}
|