]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/objc.dg/special/unclaimed-category-1.m
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / objc.dg / special / unclaimed-category-1.m
diff --git a/gcc/testsuite/objc.dg/special/unclaimed-category-1.m b/gcc/testsuite/objc.dg/special/unclaimed-category-1.m
deleted file mode 100644 (file)
index 3e521e9..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/* Contributed by Nicola Pero - Fri Dec 14 08:36:00 GMT 2001 */
-/* { dg-do run } */
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-/* Test loading unclaimed categories - categories of a class defined
-   separately from the class itself.  */
-
-
-/* unclaimed-category-1.m contains only the class definition but not
-   the categories.  unclaimed-category-1a.m contains only the
-   categories of the class, but not the class itself.  We want to
-   check that the runtime can load the class from one module (file)
-   and the categories from another module (file).  */
-
-#include "unclaimed-category-1.h"
-
-@implementation TestClass
-- (int)D
-{
-  return 4;
-}
-@end
-
-
-int main (void)
-{
-  TestClass *test;
-  Class testClass;
-
-  testClass = objc_get_class ("TestClass");
-  if (testClass == Nil)
-    {
-      abort ();
-    }
-  
-  test = (TestClass *)(class_create_instance (testClass));
-  if (test == nil)
-    {
-      abort ();
-    }
-  
-  if ([test A] != 1)
-    {
-      abort ();
-    }
-  
-  if ([test B] != 2)
-    {
-      abort ();
-    }
-
-  if ([test C] != 3)
-    {
-      abort ();
-    }
-  
-
-  if ([test D] != 4)
-    {
-      abort ();
-    }
-
-  return 0;
-}