aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/objc/real-definition/Foo.m
blob: 4d84d432303c5a027131efb58a8e488be76f2c80 (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
25
26
#import "Foo.h"

@implementation Foo

- (id)init
{
    self = [super init];
    if (self) {
        _bar = [[Bar alloc] init];
    }
    NSLog(@"waiting");; // Set breakpoint where Bar is an interface
    return self;
}

- (void)dealloc
{
    [_bar release];
    [super dealloc];
}

- (NSString *)description
{
    return [NSString stringWithFormat:@"%p: @Foo { _bar = %@ }", self, _bar];
}

@end