aboutsummaryrefslogtreecommitdiff
path: root/test/ARCMT/objcmt-instancetype-unnecessary-diff.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/ARCMT/objcmt-instancetype-unnecessary-diff.m')
-rw-r--r--test/ARCMT/objcmt-instancetype-unnecessary-diff.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ARCMT/objcmt-instancetype-unnecessary-diff.m b/test/ARCMT/objcmt-instancetype-unnecessary-diff.m
new file mode 100644
index 000000000000..e250bb0956c0
--- /dev/null
+++ b/test/ARCMT/objcmt-instancetype-unnecessary-diff.m
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -objcmt-migrate-instancetype %s -triple x86_64-apple-darwin11 -fobjc-arc -migrate -o %t.remap
+// RUN: FileCheck %s -input-file=%t.remap
+
+// Make sure we don't create an edit unnecessarily.
+// CHECK-NOT: instancetype
+
+@class NSString;
+@interface NSDictionary
++(instancetype) dictionaryWithURLEncodedString:(NSString *)urlEncodedString;
+@end