blob: 96403fde91ebeaa196b1714c2c9695f024a2c054 [file] [log] [blame]
/* APPLE LOCAL file radar 6029624 */
/* Test for const refrence property types. */
/* { dg-options "-Wno-objc-root-class -mmacosx-version-min=10.5" } */
/* { dg-do compile { target *-*-darwin* } } */
struct MyStruct
{
float x;
float y;
float z;
};
@interface MyClass
{
MyStruct foo;
MyStruct foo1;
}
@property (assign, readwrite) const MyStruct& foo;
@property (assign, readwrite) const MyStruct& Myfoo;
@end
@implementation MyClass
@synthesize Myfoo = foo;
@synthesize foo = foo1;
@end