1#import <objc/NSObject.h>
2#import "myclass.h"
3
4@implementation MyClass
5{
6 IMP myImp;
7}
8- (id)init {
9 if (self = [super init])
10 {
11 SEL theSelector = @selector(init);
12 self->myImp = [self methodForSelector:theSelector];
13 }
14 return self;
15}
16@end
17

source code of lldb/test/API/lang/objc/ivar-IMP/myclass.m