// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
extern "C" {
@interface RetainBucket
+ (id) sharedRetainBucket;
@end
@implementation RetainBucket
+ (id) sharedRetainBucket
{
static id sharedBucket = (id)0;
return sharedBucket;
}
@end
}
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
extern "C" {
@interface RetainBucket
+ (id) sharedRetainBucket;
@end
@implementation RetainBucket
+ (id) sharedRetainBucket
{
static id sharedBucket = (id)0;
return sharedBucket;
}
@end
}