summaryrefslogtreecommitdiffstats
path: root/packages/Python/lldbsuite/test/lang/objc/objc-class-method/class.m
blob: 18a2c2729beae1ff9c3792beb9f96c09183437d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#import <Foundation/Foundation.h>

@interface Foo : NSObject
+(int) doSomethingWithString: (NSString *) string;
-(int) doSomethingInstance: (NSString *) string;
@end

@implementation Foo
+(int) doSomethingWithString: (NSString *) string
{
  NSLog (@"String is: %@.", string);
  return [string length];
}

-(int) doSomethingInstance: (NSString *)string
{
  return [Foo doSomethingWithString:string];
}
@end

int main()
{
  return 0; // Set breakpoint here.
}
OpenPOWER on IntegriCloud