From: Chris Lattner Date: Sun, 12 Apr 2009 08:44:47 +0000 (+0000) Subject: this test is subsumed by protocol-test-2.m X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2ac07a95ce5e76d995ad2afe8989bec6ea871e6;p=clang this test is subsumed by protocol-test-2.m git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68895 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaObjC/protocol-undef.m b/test/SemaObjC/protocol-undef.m deleted file mode 100644 index 6f3350c9e3..0000000000 --- a/test/SemaObjC/protocol-undef.m +++ /dev/null @@ -1,46 +0,0 @@ -// RUN: clang-cc -fsyntax-only -verify %s - -typedef signed char BOOL; -@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator; -@protocol NSObject -- (BOOL)isEqual:(id)object; -@end -@protocol NSCoding -- (void)encodeWithCoder:(NSCoder *)aCoder; -@end -@interface NSObject {} @end -@class NSArray, NSAttributedString, NSEvent, NSInputServer, NSImage; -@interface NSController : NSObject {} @end -@class OzzyView; -typedef struct _OzzyInset {} OzzyInset; -@protocol OzzyP; -typedef NSObject Ozzy; -@protocol OzzyAnchorP; -typedef NSObject OzzyAnchor; -@protocol OzzyAnchorDelegateP -- (BOOL)anchor:(OzzyAnchor *)anchor confirmRepresentedObject:(id)newObject; -@end -typedef NSObject OzzyAnchorDelegate; - -@protocol OzzyAnchorP - @property(nonatomic,retain) id representedObject; - @property(nonatomic,retain) Ozzy * contentGroup; -@end -@interface XXX : NSObject // expected-warning{{cannot find protocol definition for 'OzzyP'}} -@end -@protocol OzzyActionDelegateP - @optional - (BOOL)elementView:(OzzyView *)elementView shouldDragElement:(Ozzy *)element; -@end -typedef NSObject OzzyActionDelegate; -@interface OzzyUnit : OzzyAnchorDelegate {} -@end -@interface OzzyArrayUnit : OzzyUnit {} @end -@implementation OzzyArrayUnit -- (BOOL)willChangeLayoutForObjects:(NSArray *)objects fromObjects:(NSArray *)oldObjects {} -- (void)_recalculateStoredArraysForAnchor:(OzzyAnchor *)anchor { - Ozzy * contentGroup = anchor.contentGroup; - if (contentGroup == ((void *)0)) { - contentGroup = anchor; - } -} -@end