87 lines · plain
1// RUN: %clang_cc1 -fsyntax-only %s2// FIXME: This test case tests the patch applied in: http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20080602/006017.html3// Eventually that logic should be treated as an extension.4 5typedef signed char BOOL;6typedef int NSInteger;7typedef unsigned int NSUInteger;8typedef struct _NSZone NSZone;9@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;10 11@protocol NSObject12- (BOOL)isEqual:(id)object;13@end14 15@protocol NSCopying16- (id)copyWithZone:(NSZone *)zone;17@end18 19@protocol NSMutableCopying20- (id)mutableCopyWithZone:(NSZone *)zone;21@end22 23@protocol NSCoding24- (void)encodeWithCoder:(NSCoder *)aCoder;25@end26 27@interface NSObject <NSObject> {}28@end29 30@class NSArray;31 32typedef struct {} NSFastEnumerationState;33 34@protocol NSFastEnumeration35- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;36@end37 38@class NSString;39 40@interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>41- (NSUInteger)count;42- (id)objectAtIndex:(NSUInteger)index;43@end44 45typedef unsigned short unichar;46 47@interface NSString : NSObject <NSCopying, NSMutableCopying, NSCoding>48- (NSUInteger)length;49@end50 51@interface NSSimpleCString : NSString52{}53 54@end55 56@interface NSConstantString : NSSimpleCString @end57 58extern void *_NSConstantStringClassReference;59 60@interface NSResponder : NSObject <NSCoding> {}61@end62 63@class NSDate, NSDictionary, NSError, NSException, NSNotification;64 65@interface NSWindowController : NSResponder <NSCoding> {}66@end67 68@class PBXBuildLog, PBXBuildLogItem, PBXBuildLogContainerItem, XCWorkQueueCommand, XCBuildLogContainerItemMutationState;69 70@protocol PBXBuildLogContainerItems <NSObject>71- (PBXBuildLog *)buildLog;72@end73 74@interface PBXBuildLogItem : NSObject {}75- (id <PBXBuildLogContainerItems>)superitem;76@end77@interface PBXBuildResultsModule78@end79 80@implementation PBXBuildResultsModule81- (void) revealItems82{83 PBXBuildLogItem *objItem;84 PBXBuildLogItem *superitem = [objItem superitem];85}86@end87