Home | History | Annotate | Download | only in CodeGenObjC
      1 // RUN: %clang_cc1 -fobjc-arc -fobjc-nonfragile-abi -fobjc-runtime-has-weak -triple x86_64-apple-darwin -O0 -S %s -o %t-64.s
      2 // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
      3 // rdar://8991729
      4 
      5 @interface NSObject {
      6   id isa;
      7 }
      8 @end
      9 
     10 @interface AllPointers : NSObject {
     11     id foo;
     12     id __strong bar;    
     13     NSObject *bletch;
     14 }
     15 @end
     16 
     17 @implementation AllPointers
     18 @end
     19 // CHECK-LP64: L_OBJC_CLASS_NAME_1:
     20 // CHECK-LP64-NEXT: .asciz	"\003"
     21 
     22 @class NSString, NSNumber;
     23 @interface A : NSObject {
     24    NSString *foo;
     25    NSNumber *bar;
     26    unsigned int bletch;
     27    __weak id delegate;
     28 }
     29 @end
     30 
     31 @interface B : A {
     32   unsigned int x;
     33   NSString *y;
     34   NSString *z;
     35 }
     36 @end
     37 
     38 @implementation A @end
     39 
     40 @implementation B @end
     41 
     42 // CHECK-LP64: L_OBJC_CLASS_NAME_15:
     43 // CHECK-LP64-NEXT: .asciz	"\022"
     44 
     45