diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/objc-fast-4.m')
-rw-r--r-- | gcc/testsuite/objc.dg/objc-fast-4.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/objc-fast-4.m b/gcc/testsuite/objc.dg/objc-fast-4.m new file mode 100644 index 00000000000..9d44df45a57 --- /dev/null +++ b/gcc/testsuite/objc.dg/objc-fast-4.m @@ -0,0 +1,10 @@ +// The code should call objc_msgSend directly, not through a pointer. +/* { dg-do compile { target powerpc*-*-darwin* } } */ +/* { dg-options "-O0 -fnext-runtime" } */ +#include <objc/Object.h> + +void foo(void) { + Object *o; + [o++ free]; +} +/* { dg-final { scan-assembler-not "L_objc_msgSend\\\$non_lazy_ptr" } } */ |