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