PR c/47043
[official-gcc.git] / gcc / testsuite / objc.dg / objc-fast-4.m
blob12c0f640c36d4a339652d950081f79390becdbd8
1 /* The code should call objc_msgSend directly, not through a pointer.  */
2 /* { dg-do compile { target *-*-darwin* } } */
3 /* { dg-options "-O0" } */
4 /* Radar 4015820 */
6 #include "../objc-obj-c++-shared/TestsuiteObject.h"
8 void foo(void) {
9   TestsuiteObject *o;
10   [o++ free];
12 /* { dg-final { scan-assembler-not "L_objc_msgSend\\\$non_lazy_ptr" } } */