diff options
Diffstat (limited to 'clang/test/Sema/message.m')
-rw-r--r-- | clang/test/Sema/message.m | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/clang/test/Sema/message.m b/clang/test/Sema/message.m deleted file mode 100644 index 9c9289b6..0000000 --- a/clang/test/Sema/message.m +++ /dev/null @@ -1,63 +0,0 @@ -// RUN: clang -fsyntax-only -verify %s - -@interface foo -- (void)meth; -@end - -@implementation foo -- (void) contents {} // No declaration in @interface! -- (void) meth { [self contents]; } -@end - -typedef struct _NSPoint { - float x; - float y; -} NSPoint; - -typedef struct _NSSize { - float width; - float height; -} NSSize; - -typedef struct _NSRect { - NSPoint origin; - NSSize size; -} NSRect; - -@interface AnyClass -- (NSRect)rect; -@end - -@class Helicopter; - -static void func(Helicopter *obj) { - // Note that the proto for "rect" is found in the global pool even when - // a statically typed object's class interface isn't in scope! This - // behavior isn't very desirable, however wee need it for GCC compatibility. - NSRect r = [obj rect]; -} - -@interface NSObject @end - -extern Class NSClassFromObject(id object); - -@interface XX : NSObject -@end - -@implementation XX - -+ _privateMethod { - return self; -} - -- (void) xx { - [NSClassFromObject(self) _privateMethod]; -} -@end - -@implementation XX (Private) -- (void) yy { - [NSClassFromObject(self) _privateMethod]; -} -@end - |