objc-fast-4.m: New.

2005-04-13  Dale Johannesen  <dalej@apple.com>

        * objc.dg/objc-fast-4.m:  New.

From-SVN: r98106
This commit is contained in:
Dale Johannesen 2005-04-13 19:32:31 +00:00 committed by Dale Johannesen
parent 43f479d63f
commit fda5e9366c
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-04-13 Dale Johannesen <dalej@apple.com>
* objc.dg/objc-fast-4.m: New.
2005-04-13 Hans-Peter Nilsson <hp@axis.com>
* gcc.target/cris/torture/cris-torture.exp: New driver in new

View File

@ -0,0 +1,10 @@
// The code should call objc_msgSend directly, not through a pointer.
/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-options "-O0 -fnext-runtime" } */
#include <objc/Object.h>
void foo(void) {
Object *o;
[o++ free];
}
/* { dg-final { scan-assembler-not "L_objc_msgSend\\\$non_lazy_ptr" } } */