1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s 2 // RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CLASS_$" = internal global \[1 x .*\] .*@"OBJC_CLASS_$_A".*, section "__DATA, __objc_nlclslist, regular, no_dead_strip", align 8' %t 3 // RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CATEGORY_$" = internal global \[1 x .*\] .*@".01l_OBJC_$_CATEGORY_A_$_Cat".*, section "__DATA, __objc_nlcatlist, regular, no_dead_strip", align 8' %t 4 5 @interface A @end 6 @implementation A 7 +(void) load { 8 } 9 @end 10 11 @interface A (Cat) @end 12 @implementation A (Cat) 13 +(void) load { 14 } 15 @end 16 17 @interface B @end 18 @implementation B 19 -(void) load { 20 } 21 @end 22 23 @interface B (Cat) @end 24 @implementation B (Cat) 25 -(void) load { 26 } 27 @end 28 29 @interface C : A @end 30 @implementation C 31 @end 32