pools, combined). The methods in the global method pool are lazily loaded from an on-disk hash table when Sema looks into its version of the hash tables. llvm-svn: 69989
38 lines
409 B
Objective-C
38 lines
409 B
Objective-C
/* For use with the method_pool.m test */
|
|
|
|
/* Whitespace below is significant */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@interface TestMethodPool1
|
|
+ alloc;
|
|
- (double)instMethod:(int)foo;
|
|
@end
|
|
|
|
@interface TestMethodPool2
|
|
- (char)instMethod:(int)foo;
|
|
@end
|
|
|
|
@implementation TestMethodPool1
|
|
+ alloc {
|
|
}
|
|
|
|
- (double)instMethod:(int)foo {
|
|
return foo;
|
|
}
|
|
@end
|
|
|
|
@implementation TestMethodPool2
|
|
- (char)instMethod:(int)foo {
|
|
return foo;
|
|
}
|
|
@end
|