OSDN Git Service

2005-04-13 Dale Johannesen <dalej@apple.com>
authordalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Apr 2005 19:32:31 +0000 (19:32 +0000)
committerdalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Apr 2005 19:32:31 +0000 (19:32 +0000)
        * objc.dg/objc-fast-4.m:  New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98106 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/objc-fast-4.m [new file with mode: 0644]

index effa0b3..dd6eb3e 100644 (file)
@@ -1,3 +1,7 @@
+2005-04-13  Dale Johannesen  <dalej@apple.com>
+
+       * objc.dg/objc-fast-4.m:  New.
+
 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
 
        * gcc.target/cris/torture/cris-torture.exp: New driver in new
 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
 
        * gcc.target/cris/torture/cris-torture.exp: New driver in new
diff --git a/gcc/testsuite/objc.dg/objc-fast-4.m b/gcc/testsuite/objc.dg/objc-fast-4.m
new file mode 100644 (file)
index 0000000..9d44df4
--- /dev/null
@@ -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" } } */