John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify -triple i386-apple-darwin9 -fobjc-fragile-abi |
Devang Patel | 44a3dde | 2008-06-04 21:54:36 +0000 | [diff] [blame] | 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 |