]> gcc.gnu.org Git - gcc.git/commitdiff
except-1.mm: Simplify.
authorDavid Ayers <d.ayers@inode.at>
Sat, 22 Oct 2005 09:31:12 +0000 (11:31 +0200)
committerDavid Ayers <ayers@gcc.gnu.org>
Sat, 22 Oct 2005 09:31:12 +0000 (09:31 +0000)
2005-10-22  David Ayers  <d.ayers@inode.at>

* obj-c++.dg/except-1.mm: Simplify.

From-SVN: r105790

gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/except-1.mm

index 8b7ea124e53aa85f139d9fe8bf4728cc766eee8b..ef1d49c3023b73c7b8d54f7408fd11afb87b544c 100644 (file)
@@ -1,3 +1,7 @@
+2005-10-22  David Ayers  <d.ayers@inode.at>
+
+       * obj-c++.dg/except-1.mm: Simplify.
+
 2005-10-21  David Ayers  <d.ayers@inode.at>
 
        * obj-c++.dg/except-1.mm: Generalize for both Objective-C runtimes.
index d92ac795e85aaed7d11bbfe39cce496ab875f30e..e06bea0a86c0a20892e68b7c27fbe5a95a5da3a4 100644 (file)
@@ -9,27 +9,16 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#ifndef __NEXT_RUNTIME__
-extern "C" {
-  extern id class_create_instance(Class _class);
-}
-#else
-extern "C" {
-  extern id (*_zoneAlloc)(Class, unsigned int, void *);
-  extern void *malloc_default_zone(void);
-}
-#endif
 
-@interface RObject {
+@interface Object {
   Class isa;  
 }
-+ initialize;
 + alloc;
 - init;
 @end
 
 // ObjectiveC class header
-@interface ObjCclass : RObject {
+@interface ObjCclass : Object {
 }
 -(void)method1;
 -(void)method2;
@@ -80,24 +69,3 @@ void CPPclass::function1()
        /* Shouldn't be here because we threw.  */
        abort ();
 }
-
-@implementation RObject
-+ initialize
-{
-  return self;
-}
-
-- init
-{
-  return self;
-}
-
-+ alloc
-{
-#ifndef __NEXT_RUNTIME__
-  return class_create_instance(self);
-#else
-  return (*_zoneAlloc)((Class)self, 0, malloc_default_zone());
-#endif
-}
-@end
This page took 0.091305 seconds and 5 git commands to generate.