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:
parent
43f479d63f
commit
fda5e9366c
@ -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
|
||||
|
10
gcc/testsuite/objc.dg/objc-fast-4.m
Normal file
10
gcc/testsuite/objc.dg/objc-fast-4.m
Normal 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" } } */
|
Loading…
Reference in New Issue
Block a user