summaryrefslogtreecommitdiffstats
path: root/test/Parser/recovery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/recovery.cpp')
-rw-r--r--test/Parser/recovery.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Parser/recovery.cpp b/test/Parser/recovery.cpp
index 732b9ae..41845fb 100644
--- a/test/Parser/recovery.cpp
+++ b/test/Parser/recovery.cpp
@@ -43,3 +43,10 @@ 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'}}
+
+struct Redefined { // expected-note {{previous}}
+ Redefined() {}
+};
+struct Redefined { // expected-error {{redefinition}}
+ Redefined() {}
+};
OpenPOWER on IntegriCloud