blob: 9b083b0154e1077db6c98776f824c78a67889db1 [file] [log] [blame]
John McCall5fb5df92012-06-20 06:18:46 +00001// RUN: %clang_cc1 %s -fsyntax-only -verify -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5
Andy Gibbsc6e68da2012-10-19 12:44:48 +00002// expected-no-diagnostics
Devang Pateldbb72632008-06-04 21:54:36 +00003typedef struct objc_object {} *id;
4typedef signed char BOOL;
5typedef unsigned int NSUInteger;
6typedef 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
19extern 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