This reverts commit 0788acbccbec094903a3425ffe5a98f8d55cbd64.
This reverts commit c2d7a1f79cedfc9fcb518596aa839da4de0adb69: Revert "[clangd] Add test for FindTarget+RecoveryExpr (which already works). NFC"
It causes a crash on invalid code:
class X {
decltype(unresolved()) foo;
};
constexpr int s = sizeof(X);
11 lines
568 B
C++
11 lines
568 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify -x objective-c++ -std=c++11 %s
|
|
|
|
void foo() { // expected-note {{to match this '{'}}
|
|
int bar;
|
|
auto baz = [
|
|
bar( // expected-note {{to match this '('}} expected-note {{to match this '('}}
|
|
foo_undeclared() // expected-error{{use of undeclared identifier 'foo_undeclared'}}
|
|
/* ) */
|
|
] () { }; // expected-error{{expected ')'}}
|
|
} // expected-error{{expected ')'}} expected-error {{expected ',' or ']'}} expected-error{{expected ';' at end of declaration}} expected-error{{expected '}'}}
|