summaryrefslogtreecommitdiff
path: root/clang/test/Index/Inputs/t2.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/Inputs/t2.m')
-rw-r--r--clang/test/Index/Inputs/t2.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Index/Inputs/t2.m b/clang/test/Index/Inputs/t2.m
new file mode 100644
index 0000000..3f103ee
--- /dev/null
+++ b/clang/test/Index/Inputs/t2.m
@@ -0,0 +1,13 @@
+#include "objc.h"
+
+static void foo() {
+ Sub *sub;
+ int x = [sub my_var];
+ [sub my_method:x];
+ [Sub my_method:x];
+}
+
+@implementation Sub
+-(void) my_method: (int)param {
+}
+@end