brintos

brintos / llvm-project-archived public Read only

0
0
Text · 741 B · 9b083b0 Raw
29 lines · plain
1// RUN: %clang_cc1 %s -fsyntax-only -verify  -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.52// expected-no-diagnostics3typedef struct objc_object {} *id;4typedef signed char BOOL;5typedef unsigned int NSUInteger;6typedef struct _NSZone NSZone;7 8@protocol NSObject9- (BOOL) isEqual:(id) object;10@end11 12@protocol NSCopying13- (id) copyWithZone:(NSZone *) zone;14@end15 16@interface NSObject < NSObject > {}17@end18 19extern id NSAllocateObject (Class aClass, NSUInteger extraBytes, NSZone * zone);20 21@interface MyClassBase : NSObject < NSCopying > {}22@end23 24@interface MyClassDirectNode : MyClassBase < NSCopying >25{26  @public NSUInteger attributeRuns[((1024 - 16 - sizeof (MyClassBase)) / (sizeof (NSUInteger) + sizeof (void *)))];27}28@end29