blob: b9ab2c3e2ac0bcd2a9040fe164df65438f1e1888 [file] [log] [blame]
/* APPLE LOCAL file ObjC direct dispatch */
/* A compile-only test for insertion of 'bla' comm page jumps. */
/* Developed by Ziemowit Laski <zlaski@apple.com> */
/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-options "-fnext-runtime -fobjc-gc -fobjc-direct-dispatch -Wassign-intercept" } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
#include <objc/Object.h>
@interface Derived: Object {
@public
Object *other;
}
@end
void foo(void) {
Derived *o = [Derived new];
o->other = 0; /* { dg-warning "instance variable assignment has been intercepted" } */
}
/* { dg-final { scan-assembler-not "objc_msgSend" } } */
/* { dg-final { scan-assembler-not "objc_assign_ivar" } } */
/* { dg-final { scan-assembler "bla.*fffeff00" } } */
/* { dg-final { scan-assembler "bla.*fffefec0" } } */