summaryrefslogtreecommitdiff
path: root/test/Parser/recovery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/recovery.cpp')
-rw-r--r--test/Parser/recovery.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Parser/recovery.cpp b/test/Parser/recovery.cpp
index ffa1bab55a44e..ff687583c253e 100644
--- a/test/Parser/recovery.cpp
+++ b/test/Parser/recovery.cpp
@@ -12,13 +12,12 @@ inline namespace Std { // expected-error {{cannot be reopened as inline}}
int x;
Std::Important y;
-// FIXME: Recover as if the typo correction were applied.
-extenr "C" { // expected-error {{did you mean 'extern'}} expected-error {{unqualified-id}}
+extenr "C" { // expected-error {{did you mean the keyword 'extern'}}
void f();
}
void g() {
z = 1; // expected-error {{undeclared}}
- f(); // expected-error {{undeclared}}
+ f();
}
struct S {
@@ -37,6 +36,7 @@ namespace N {
int
} // expected-error {{unqualified-id}}
-// FIXME: Recover as if the typo correction were applied.
-strcut U { // expected-error {{did you mean 'struct'}}
-} *u[3]; // expected-error {{expected ';'}}
+strcut Uuuu { // expected-error {{did you mean the keyword 'struct'}} \
+ // expected-note {{'Uuuu' declared here}}
+} *u[3];
+uuuu v; // expected-error {{did you mean 'Uuuu'}}