1 // RUN: %clang_cc1 -fsyntax-only -verify -fobjc-exceptions %s
2 // expected-no-diagnostics
4 # 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3
5 typedef signed char BOOL;
6 typedef unsigned int NSUInteger;
7 typedef struct _NSZone NSZone;
9 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
12 - (BOOL)isEqual:(id)object;
17 - (id)copyWithZone:(NSZone *)zone;
20 @protocol NSMutableCopying
21 - (id)mutableCopyWithZone:(NSZone *)zone;
25 - (void)encodeWithCoder:(NSCoder *)aCoder;
28 @interface NSObject <NSObject> {}
31 typedef struct {} NSFastEnumerationState;
33 @protocol NSFastEnumeration
34 - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
37 @interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>
41 @interface NSMutableArray : NSArray
42 - (void)addObject:(id)anObject;
43 + (id)arrayWithCapacity:(int)numItems;
46 @interface NSBundle : NSObject {}
47 + (NSBundle *)bundleForClass:(Class)aClass;
48 - (NSString *)bundlePath;
49 - (void)setBundlePath:(NSString *)x;
52 @interface NSException : NSObject <NSCopying, NSCoding> {}
55 @class NSArray, NSDictionary, NSError, NSString, NSURL;
57 @interface DTPlugInManager : NSObject
60 @implementation DTPlugInManager
61 + (DTPlugInManager *)defaultPlugInManager {
63 NSMutableArray *plugInPaths = [NSMutableArray arrayWithCapacity:100];
64 NSBundle *frameworkBundle = [NSBundle bundleForClass:[DTPlugInManager class]];
65 frameworkBundle.bundlePath = 0;
66 [plugInPaths addObject:frameworkBundle.bundlePath];
68 @catch (NSException *exception) {}