summaryrefslogtreecommitdiffstats
path: root/test/FixIt/fixit.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FixIt/fixit.c')
-rw-r--r--test/FixIt/fixit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FixIt/fixit.c b/test/FixIt/fixit.c
index 5e4947b..ce6f109 100644
--- a/test/FixIt/fixit.c
+++ b/test/FixIt/fixit.c
@@ -100,3 +100,11 @@ int noSemiAfterLabel(int n) {
}
return 1;
}
+
+struct noSemiAfterStruct // expected-error {{expected ';' after struct}}
+struct noSemiAfterStruct {
+ int n // expected-warning {{';'}}
+} // expected-error {{expected ';' after struct}}
+enum noSemiAfterEnum {
+ e1
+} // expected-error {{expected ';' after enum}}
OpenPOWER on IntegriCloud