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

@interface Foo : NSObject
+(void) doSomethingWithString: (NSString *) string;
-(void) doSomethingWithNothing;
@end

@implementation Foo
+(void) doSomethingWithString: (NSString *) string
{
  NSLog (@"String is: %@.", string); // Set breakpoint here.
}

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

-(void) doSomethingWithNothing
{
}
@end

int main()
{
  [Foo doSomethingWithString: @"Some string I have in mind."];
  return 0;
}