OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2005-10-22 David Ayers <d.ayers@inode.at>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
except-1.mm
diff --git
a/gcc/testsuite/obj-c++.dg/except-1.mm
b/gcc/testsuite/obj-c++.dg/except-1.mm
index
d92ac79
..
e06bea0
100644
(file)
--- a/
gcc/testsuite/obj-c++.dg/except-1.mm
+++ b/
gcc/testsuite/obj-c++.dg/except-1.mm
@@
-9,27
+9,16
@@
#include <stdio.h>
#include <stdlib.h>
#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
R
Object {
+@interface Object {
Class isa;
}
Class isa;
}
-+ initialize;
+ alloc;
- init;
@end
// ObjectiveC class header
+ alloc;
- init;
@end
// ObjectiveC class header
-@interface ObjCclass :
R
Object {
+@interface ObjCclass : Object {
}
-(void)method1;
-(void)method2;
}
-(void)method1;
-(void)method2;
@@
-80,24
+69,3
@@
void CPPclass::function1()
/* Shouldn't be here because we threw. */
abort ();
}
/* 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