aboutsummaryrefslogtreecommitdiff
path: root/test/FixIt/fixit.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FixIt/fixit.c')
-rw-r--r--test/FixIt/fixit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/FixIt/fixit.c b/test/FixIt/fixit.c
index ce6f1092df19..00adb19e50ce 100644
--- a/test/FixIt/fixit.c
+++ b/test/FixIt/fixit.c
@@ -81,6 +81,13 @@ void oopsMoreCommas() {
&a == &b ? oopsMoreCommas() : removeUnusedLabels(a[0]);
}
+int commaAtEndOfStatement() {
+ int a = 1;
+ a = 5, // expected-error {{';'}}
+ int m = 5, // expected-error {{';'}}
+ return 0, // expected-error {{';'}}
+}
+
int noSemiAfterLabel(int n) {
switch (n) {
default: