summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-04-21 17:29:47 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-04-21 17:29:47 +0000
commit1f329402ae184b661e4d6455cde0deabca2c5fe1 (patch)
tree1e734985ce383f71361abc020fb32c8c2364a597 /clang/test/FixIt/fixit.c
parent99fbd4d1d8b96c159438a5710bdba4647c6897b6 (diff)
downloadbcm5719-llvm-1f329402ae184b661e4d6455cde0deabca2c5fe1.tar.gz
bcm5719-llvm-1f329402ae184b661e4d6455cde0deabca2c5fe1.zip
Fixit suggestion for adding missing tag name should have a space after the tag name. Fixes rdar://9295072
llvm-svn: 129917
Diffstat (limited to 'clang/test/FixIt/fixit.c')
-rw-r--r--clang/test/FixIt/fixit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit.c b/clang/test/FixIt/fixit.c
index 9c744359428..1a6ef635570 100644
--- a/clang/test/FixIt/fixit.c
+++ b/clang/test/FixIt/fixit.c
@@ -48,3 +48,9 @@ enum Color {
Green = 17 // expected-error{{missing ',' between enumerators}}
Blue,
};
+
+// rdar://9295072
+struct test_struct {
+ // CHECK: struct test_struct *struct_ptr;
+ test_struct *struct_ptr; // expected-error {{must use 'struct' tag to refer to type 'test_struct'}}
+};
OpenPOWER on IntegriCloud