blob: 9f087138a0733eff850b5534b3b94c3291c6e593 [file] [log] [blame]
/* APPLE LOCAL file 5675908 */
/* A write barrier should not be generated if garbage collection is
disabled. */
/* { dg-do compile } */
/* { dg-options "-fno-objc-gc -mmacosx-version-min=10.5" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fno-objc-gc" { target arm*-*-darwin* } } */
__attribute__((objc_root_class)) @interface Foo
{
id x;
}
@property(assign) id x;
@end
@implementation Foo
@synthesize x;
@end
/* { dg-final { scan-assembler-not "objc_assign_ivar" } } */