Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 %s -fsyntax-only -verify  -triple i386-apple-darwin9
      2 typedef struct objc_object {} *id;
      3 typedef signed char BOOL;
      4 typedef unsigned int NSUInteger;
      5 typedef struct _NSZone NSZone;
      6 
      7 @protocol NSObject
      8 - (BOOL) isEqual:(id) object;
      9 @end
     10 
     11 @protocol NSCopying
     12 - (id) copyWithZone:(NSZone *) zone;
     13 @end
     14 
     15 @interface NSObject < NSObject > {}
     16 @end
     17 
     18 extern id NSAllocateObject (Class aClass, NSUInteger extraBytes, NSZone * zone);
     19 
     20 @interface MyClassBase : NSObject < NSCopying > {}
     21 @end
     22 
     23 @interface MyClassDirectNode : MyClassBase < NSCopying >
     24 {
     25   @public NSUInteger attributeRuns[((1024 - 16 - sizeof (MyClassBase)) / (sizeof (NSUInteger) + sizeof (void *)))];
     26 }
     27 @end
     28