[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / property-6.m
blob72beb67b43e457c2c0ab7c7c9e51978b38306b59
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 # 1 "<command line>"
3 # 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3
4 typedef signed char BOOL;
5 typedef unsigned int NSUInteger;
6 typedef struct _NSZone NSZone;
8 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
10 @protocol NSObject
11 - (BOOL)isEqual:(id)object;
12 + class;
13 @end
15 @protocol NSCopying 
16 - (id)copyWithZone:(NSZone *)zone;
17 @end
19 @protocol NSMutableCopying
20 - (id)mutableCopyWithZone:(NSZone *)zone;
21 @end
23 @protocol NSCoding
24 - (void)encodeWithCoder:(NSCoder *)aCoder;
25 @end
27 @interface NSObject <NSObject> {}
28 @end
30 typedef struct {} NSFastEnumerationState;
32 @protocol NSFastEnumeration 
33 - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
34 @end
36 @interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>
37 - (NSUInteger)count;
38 @end
40 @interface NSMutableArray : NSArray
41 - (void)addObject:(id)anObject;
42 + (id)arrayWithCapacity:(int)numItems;
43 @end
45 @interface NSBundle : NSObject {}
46 + (NSBundle *)bundleForClass:(Class)aClass;
47 - (NSString *)bundlePath;
48 - (void)setBundlePath:(NSString *)x;
49 @end
51 @interface NSException : NSObject <NSCopying, NSCoding> {}
52 @end
54 @class NSArray, NSDictionary, NSError, NSString, NSURL;
56 @interface DTPlugInManager : NSObject
57 @end
59 @implementation DTPlugInManager
60 + (DTPlugInManager *)defaultPlugInManager {
61   @try {
62     NSMutableArray *plugInPaths = [NSMutableArray arrayWithCapacity:100];
63     NSBundle *frameworkBundle = [NSBundle bundleForClass:[DTPlugInManager class]];
64     frameworkBundle.bundlePath = 0;
65     [plugInPaths addObject:frameworkBundle.bundlePath];
66   }
67   @catch (NSException *exception) {}
69 @end