]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/objc/execute/root_methods.m
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / objc / execute / root_methods.m
diff --git a/gcc/testsuite/objc/execute/root_methods.m b/gcc/testsuite/objc/execute/root_methods.m
deleted file mode 100644 (file)
index 4f2c2fa..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Contributed by Nicola Pero - Thu Mar  8 16:27:46 CET 2001 */
-#include <objc/objc.h>
-
-/* Test that instance methods of root classes are available as class 
-   methods to other classes as well */
-
-@interface RootClass
-{
-  Class isa;
-}
-- (id) self;
-@end
-
-@implementation RootClass
-- (id) self
-{
-  return self;
-}
-@end
-
-@interface NormalClass : RootClass
-@end
-
-@implementation NormalClass : RootClass
-@end
-
-int main (void)
-{
-  Class normal = objc_get_class ("NormalClass");
-
-  if (normal == Nil)
-    {
-      abort ();
-    }
-
-  if ([NormalClass self] != normal)
-    {
-      abort ();
-    }
-
-  return 0;
-}