2007-03-01 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / gcc / testsuite / objc.dg / objc-fast-4.m
blob8dbcd138b8c8daa6f78bde549bb9867c0c087d43
1 /* The code should call objc_msgSend directly, not through a pointer.  */
2 /* { dg-do compile { target powerpc*-*-darwin* } } */
3 /* { dg-options "-O0 -fnext-runtime" } */
4 /* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
5 /* Radar 4015820 */
7 #include <objc/Object.h>
9 void foo(void) {
10   Object *o;
11   [o++ free];
13 /* { dg-final { scan-assembler-not "L_objc_msgSend\\\$non_lazy_ptr" } } */