40 lines · plain
1// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s2// RUN: grep '.lazy_reference .objc_class_name_A' %t | count 13// RUN: grep '.lazy_reference .objc_class_name_Unknown' %t | count 14// RUN: grep '.lazy_reference .objc_class_name_Protocol' %t | count 15// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -DWITH_IMPL -emit-llvm -o %t %s6// RUN: grep '.lazy_reference .objc_class_name_Root' %t | count 17 8@interface Root9-(id) alloc;10-(id) init;11@end12 13@protocol P @end14 15@interface A : Root16@end17 18@interface A (Category)19+(void) foo;20@end21 22#ifdef WITH_IMPL23@implementation A24@end25#endif26 27@interface Unknown28+test;29@end30 31 32int main(void) {33 id x = @protocol(P);34 [ A alloc ];35 [ A foo ];36 [ Unknown test ];37 return 0;38}39 40