49 lines · plain
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wno-objc-root-class -emit-llvm -o - %s | FileCheck %s2 3// CHECK: @"OBJC_LABEL_NONLAZY_CLASS_$" = private global [3 x {{.*}}]{{.*}}@"OBJC_CLASS_$_A"{{.*}},{{.*}}@"OBJC_CLASS_$_D"{{.*}},{{.*}}"OBJC_CLASS_$_E"{{.*}} section "__DATA,__objc_nlclslist,regular,no_dead_strip", align 84// CHECK: @"OBJC_LABEL_NONLAZY_CATEGORY_$" = private global [2 x {{.*}}] {{.*}}@"_OBJC_$_CATEGORY_A_$_Cat"{{.*}},{{.*}}@"_OBJC_$_CATEGORY_E_$_MyCat"{{.*}}, section "__DATA,__objc_nlcatlist,regular,no_dead_strip", align 85 6@interface A @end7@implementation A8+(void) load {9}10@end11 12@interface A (Cat) @end13@implementation A (Cat)14+(void) load {15}16@end17 18@interface B @end19@implementation B20-(void) load {21}22@end23 24@interface B (Cat) @end25@implementation B (Cat)26-(void) load {27}28@end29 30@interface C : A @end31@implementation C32@end33 34__attribute__((objc_nonlazy_class))35@interface D @end36 37@implementation D @end38 39@interface E @end40 41__attribute__((objc_nonlazy_class))42@implementation E @end43 44__attribute__((objc_nonlazy_class))45@implementation E (MyCat)46-(void) load {47}48@end49