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