aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/objc.dg/objc-fast-4.m
blob: 8dbcd138b8c8daa6f78bde549bb9867c0c087d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* The code should call objc_msgSend directly, not through a pointer.  */
/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-options "-O0 -fnext-runtime" } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "-m64" } { "" } } */
/* Radar 4015820 */

#include <objc/Object.h>

void foo(void) {
  Object *o;
  [o++ free];
}
/* { dg-final { scan-assembler-not "L_objc_msgSend\\\$non_lazy_ptr" } } */