mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

extern "C", its method definitions must be IRGen'ed before meta-data for class is generated. Otherwise, IRGen crashes (to say the least). // rdar://12581683 llvm-svn: 166809
18 lines
265 B
Plaintext
18 lines
265 B
Plaintext
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
|
|
// rdar://12581683
|
|
|
|
extern "C" {
|
|
@interface RetainBucket
|
|
+ (id) sharedRetainBucket;
|
|
@end
|
|
|
|
@implementation RetainBucket
|
|
+ (id) sharedRetainBucket
|
|
{
|
|
static id sharedBucket = (id)0;
|
|
return sharedBucket;
|
|
}
|
|
@end
|
|
}
|
|
|