blob: 2a6f94a070ed414690644e45628e497a444da1ae [file] [log] [blame]
/* APPLE LOCAL file 4805321 */
/* { dg-do run { target *-*-darwin* } } */
/* { dg-options "-fobjc-new-property -mmacosx-version-min=10.5 -lobjc" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fobjc-new-property -lobjc" { target arm*-*-darwin* } } */
#include <objc/objc.h>
/* APPLE LOCAL radar 4894756 */
#include "../objc/execute/Object2.h"
@protocol GCObject
@property (assign) int CCCC;
@end
@protocol DerivedGCObject <GCObject>
@property (assign) int Dclass;
@end
@interface GCObject : Object <DerivedGCObject> {
int ifield;
int iDclass, iOwnClass;
}
@property (assign) int OwnClass;
@end
@implementation GCObject : Object
@synthesize CCCC=ifield, Dclass=iDclass, OwnClass=iOwnClass;
@end
int main(int argc, char **argv) {
GCObject *f = [GCObject new];
f.CCCC = 5;
f.Dclass = 1;
f.OwnClass = 3;
return f.CCCC + f.Dclass + f.OwnClass - 9;
}