blob: 4f6dbe68ec78df072d2fc2cb2edcbdb8907fe3ee [file] [log] [blame]
/* APPLE LOCAL file radar 4505126 */
/* Test lookup of properties in super classes. */
/* Program should compile with no error or warning. */
/* { dg-do compile { target *-*-darwin* } } */
/* APPLE LOCAL radar 4899595 */
/* { dg-options "-mmacosx-version-min=10.5" } */
#import <Foundation/Foundation.h>
@interface test : NSObject
{
}
@property (copy) NSString *foo;
@end
@interface test_sub : test
@end
int main (int argc, char **argv)
{
test_sub *outer = nil;
test *inner = outer;
NSString *x;
x = outer.foo;
outer.foo = @"two";
x = inner.foo;
inner.foo = @"one";
return 0;
}