summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit-add-synthesize-to-property.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/FixIt/fixit-add-synthesize-to-property.m')
-rw-r--r--clang/test/FixIt/fixit-add-synthesize-to-property.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit-add-synthesize-to-property.m b/clang/test/FixIt/fixit-add-synthesize-to-property.m
new file mode 100644
index 00000000000..19b2f4b73f0
--- /dev/null
+++ b/clang/test/FixIt/fixit-add-synthesize-to-property.m
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
+
+@protocol P1
+
+@property int prop;
+
+@end
+
+@interface I <P1>
+
+@end
+
+@implementation I
+@end // CHECK: fix-it:{{.*}}:{[[@LINE]]:1-[[@LINE]]:1}:"@synthesize prop;\n\n"
OpenPOWER on IntegriCloud