summaryrefslogtreecommitdiff
path: root/clang/test/Rewriter/id-test-3.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Rewriter/id-test-3.m')
-rw-r--r--clang/test/Rewriter/id-test-3.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Rewriter/id-test-3.m b/clang/test/Rewriter/id-test-3.m
new file mode 100644
index 0000000..d7a7bf3
--- /dev/null
+++ b/clang/test/Rewriter/id-test-3.m
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -rewrite-objc -fobjc-fragile-abi %s -o -
+
+@protocol P
+- (id<P>) Meth: (id<P>) Arg;
+@end
+
+@interface INTF<P>
+- (id<P>)IMeth;
+@end
+
+@implementation INTF
+- (id<P>)IMeth { return [(id<P>)self Meth: (id<P>)0]; }
+- (id<P>) Meth : (id<P>) Arg { return 0; }
+@end