aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cpplocators
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpplocators')
-rw-r--r--tests/cpplocators/testdata_basic/file1.mm23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/cpplocators/testdata_basic/file1.mm b/tests/cpplocators/testdata_basic/file1.mm
new file mode 100644
index 00000000000..841a31051cf
--- /dev/null
+++ b/tests/cpplocators/testdata_basic/file1.mm
@@ -0,0 +1,23 @@
+// Copyright header to keep the Qt Insanity Bot happy.
+
+@protocol NSObject
+@end
+
+@interface NSObject<NSObject>
+@end
+
+@protocol MyProtocol <NSObject>
+- (void) someMethod;
+@end
+
+@interface MyClass: NSObject <MyProtocol>
+@end
+
+@implementation MyClass
+- (void) someMethod {}
+@end
+
+@implementation MyClass(MyCategory)
+- (void) anotherMethod;{}
+- (void) anotherMethod:(NSObject*)withAnObject{}
+@end