clang-1/test/SemaObjC/property-11.m

33 строки
333 B
Objective-C

// RUN: clang -fsyntax-only -verify %s
@interface NSSound
@end
@interface NSFont
@end
@interface NSSound (Adds)
@end
@implementation NSSound (Adds)
- foo {
return self;
}
- (void)setFoo:obj {
}
@end
@implementation NSFont (Adds)
- xx {
NSSound *x;
id o;
o = [x foo];
o = x.foo;
[x setFoo:o];
x.foo = o;
}
@end