summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/oc/50008-protocol.m
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/oc/50008-protocol.m')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/oc/50008-protocol.m31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/oc/50008-protocol.m b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/oc/50008-protocol.m
new file mode 100644
index 00000000..50c4314a
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/oc/50008-protocol.m
@@ -0,0 +1,31 @@
+
+NSAssert([self.delegate conformsToProtocol: @protocol(UISearchBarDelegate)], @"Some Error.");
+
+Protocol *counter = @protocol(ReferenceCounting);
+
+@protocol ReferenceCounting
+
+-setRefCount: (int)count;
+
+-(int)refCount;
+
+-incrementCount;
+
+-decrementCount;
+
+@end
+
+@interface Formatter : NSObject<Formatting, Prettifying>
+
+@end
+
+if ([receiver conformsTo: @protocol(ReferenceCounting)])
+{
+ [receiver incrementCount];
+}
+
+@protocol B;
+
+@protocol A
+-Foo: (id<B>)anObject;
+@end