blob: b2c6f0d95fc25cb7b884544cf9dfd60386d7c4de [file] [log] [blame]
Fariborz Jahanian1147c5e2009-12-14 17:36:25 +00001// RUN: clang -cc1 %s -fsyntax-only -verify -triple i386-apple-darwin9
Devang Patel44a3dde2008-06-04 21:54:36 +00002typedef struct objc_object {} *id;
3typedef signed char BOOL;
4typedef unsigned int NSUInteger;
5typedef 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
18extern 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