blob: 297611574eae7aba18d9d646278a8083d26398c9 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
@interface NSSound
@interface NSFont
@interface NSSound (Adds)
@implementation NSSound (Adds)
- foo {
return self;
- (void)setFoo:obj {
@implementation NSFont (Adds)
- xx {
NSSound *x;
id o;
// GCC does *not* warn about the following. Since foo/setFoo: are not in the
// class or category interface for NSSound, the compiler shouldn't find them.
// For now, we will support GCC's behavior (sigh).
o = [x foo];
o =;
[x setFoo:o]; = o;
return 0;