2019-04-12 01:55:34 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wno-objc-root-class -emit-llvm -o - %s | FileCheck %s
|
|
|
|
|
2019-05-10 01:43:52 +08:00
|
|
|
// CHECK: @"OBJC_LABEL_NONLAZY_CLASS_$" = internal global [3 x {{.*}}]{{.*}}@"OBJC_CLASS_$_A"{{.*}},{{.*}}@"OBJC_CLASS_$_D"{{.*}},{{.*}}"OBJC_CLASS_$_E"{{.*}} section "__DATA,__objc_nlclslist,regular,no_dead_strip", align 8
|
|
|
|
// CHECK: @"OBJC_LABEL_NONLAZY_CATEGORY_$" = internal global [2 x {{.*}}] {{.*}}@"_OBJC_$_CATEGORY_A_$_Cat"{{.*}},{{.*}}@"_OBJC_$_CATEGORY_E_$_MyCat"{{.*}}, section "__DATA,__objc_nlcatlist,regular,no_dead_strip", align 8
|
2009-05-16 06:33:15 +08:00
|
|
|
|
|
|
|
@interface A @end
|
|
|
|
@implementation A
|
|
|
|
+(void) load {
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface A (Cat) @end
|
|
|
|
@implementation A (Cat)
|
|
|
|
+(void) load {
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface B @end
|
|
|
|
@implementation B
|
|
|
|
-(void) load {
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface B (Cat) @end
|
|
|
|
@implementation B (Cat)
|
|
|
|
-(void) load {
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2009-05-19 00:49:49 +08:00
|
|
|
@interface C : A @end
|
|
|
|
@implementation C
|
|
|
|
@end
|
2019-02-05 07:32:55 +08:00
|
|
|
|
|
|
|
__attribute__((objc_nonlazy_class))
|
|
|
|
@interface D @end
|
|
|
|
|
|
|
|
@implementation D @end
|
2019-04-12 01:55:34 +08:00
|
|
|
|
|
|
|
@interface E @end
|
|
|
|
|
|
|
|
__attribute__((objc_nonlazy_class))
|
|
|
|
@implementation E @end
|
|
|
|
|
|
|
|
__attribute__((objc_nonlazy_class))
|
|
|
|
@implementation E (MyCat) @end
|