Remove a fixme which was fixed in a previous commit.
[clang.git] / test / SemaObjC / compare-qualified-id.m
blobce0db191ea9a00f97f761bbbb5c1048ecf0ac6dc
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 typedef signed char BOOL;
4 typedef unsigned int NSUInteger;
5 typedef struct _NSZone NSZone;
6 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
7 @protocol NSObject  - (BOOL)isEqual:(id)object; @end
8 @protocol NSCopying  - (id)copyWithZone:(NSZone *)zone; @end // expected-note {{method declared here}}
9 @protocol NSMutableCopying  - (id)mutableCopyWithZone:(NSZone *)zone; @end
10 @protocol NSCoding  - (void)encodeWithCoder:(NSCoder *)aCoder; @end
11 @interface NSObject <NSObject> {} @end
12 typedef struct {} NSFastEnumerationState;
13 @protocol NSFastEnumeration  - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len; @end
14 @interface NSDictionary : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>  - (NSUInteger)count; @end
15 @interface NSMutableDictionary : NSDictionary  - (void)removeObjectForKey:(id)aKey; @end
16 extern NSString * const NSTaskDidTerminateNotification;
18 @interface XCPropertyExpansionContext : NSObject <NSCopying> { // expected-note {{required for direct or indirect protocol 'NSCopying'}}
19   NSMutableDictionary * _propNamesToPropValuesCache;
20 } @end
22 @protocol XCPropertyValues <NSObject, NSCopying>
23 - (NSString *)evaluateAsStringInContext:(XCPropertyExpansionContext *)context withNestingState:(const void *)state;
24 @end
26 @implementation XCPropertyExpansionContext // expected-warning {{incomplete implementation}} \
27                                            // expected-warning {{method in protocol not implemented [-Wprotocol]}}
28 - (NSString *)expandedValueForProperty:(NSString *)property {
29   id <XCPropertyValues> cachedValueNode = [_propNamesToPropValuesCache objectForKey:property]; // expected-warning {{method '-objectForKey:' not found (return type defaults to 'id')}}
30   if (cachedValueNode == ((void *)0)) { }
31   NSString * expandedValue = [cachedValueNode evaluateAsStringInContext:self withNestingState:((void *)0)];
32   return expandedValue;
34 @end