blob: f80df4880ea71d3fa4952bca4fe003efe2e0f17d [file] [log] [blame]
/* APPLE LOCAL file 4564386 */
/* APPLE LOCAL radar 4899595 */
/* { dg-options "-fno-objc-new-property -mmacosx-version-min=10.5" } */
/* { dg-do run { target *-*-darwin* } } */
#include <objc/objc.h>
/* APPLE LOCAL radar 4894756 */
#include "../objc/execute/Object2.h"
@protocol GCObject
@property (ivar=ifield) int class;
@end
@protocol DerivedGCObject <GCObject>
@property (ivar) int Dclass;
@end
@interface GCObject : Object <DerivedGCObject> {
int ifield;
}
@property (ivar) int OwnClass;
@end
@implementation GCObject : Object
@property(ivar=ifield) int class;
@property int Dclass;
@property int OwnClass;
@end
int main(int argc, char **argv) {
GCObject *f = [GCObject new];
f.class = 5;
f.Dclass = 1;
f.OwnClass = 3;
return f.class + f.Dclass + f.OwnClass - 9;
}