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

#include "../objc-obj-c++-shared/TestsuiteObject.h"

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