summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-07 14:51:08 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-07 14:51:08 +0000
commitce66d028771d0ed37d3eba8c83e9193734b7cf06 (patch)
tree1f1e31cdd723b6e709225f1a2b5e725339d7ee0a /clang/test/FixIt/fixit.c
parent1ecb978214f7522be9348c0770cabd3014528cba (diff)
downloadbcm5719-llvm-ce66d028771d0ed37d3eba8c83e9193734b7cf06.tar.gz
bcm5719-llvm-ce66d028771d0ed37d3eba8c83e9193734b7cf06.zip
Improve recovery when a comma is missing between enumerators in an
enumeration definition. Fixes <rdar://problem/7159693>. llvm-svn: 113201
Diffstat (limited to 'clang/test/FixIt/fixit.c')
-rw-r--r--clang/test/FixIt/fixit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit.c b/clang/test/FixIt/fixit.c
index 890fb10b41d..9c744359428 100644
--- a/clang/test/FixIt/fixit.c
+++ b/clang/test/FixIt/fixit.c
@@ -41,3 +41,10 @@ int test_cond(int y, int fooBar) {
// CHECK: typedef int int_t;
typedef typedef int int_t;
+
+// <rdar://problem/7159693>
+enum Color {
+ Red // expected-error{{missing ',' between enumerators}}
+ Green = 17 // expected-error{{missing ',' between enumerators}}
+ Blue,
+};
OpenPOWER on IntegriCloud