summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/oc/protocol.m
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/oc/protocol.m')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/oc/protocol.m30
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/oc/protocol.m b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/oc/protocol.m
new file mode 100644
index 00000000..31a8b86f
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/oc/protocol.m
@@ -0,0 +1,30 @@
+
+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
+