OSDN Git Service

8dbcd138b8c8daa6f78bde549bb9867c0c087d43
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / objc-fast-4.m
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 */
6
7 #include <objc/Object.h>
8
9 void foo(void) {
10   Object *o;
11   [o++ free];
12 }
13 /* { dg-final { scan-assembler-not "L_objc_msgSend\\\$non_lazy_ptr" } } */