]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/objc/execute/no_clash.m
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / objc / execute / no_clash.m
diff --git a/gcc/testsuite/objc/execute/no_clash.m b/gcc/testsuite/objc/execute/no_clash.m
deleted file mode 100644 (file)
index 7eaa513..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Contributed by Nicola Pero - Fri Mar  9 19:39:15 CET 2001 */
-#include <objc/objc.h>
-#include <objc/Object.h>
-
-/* Test that using the same name for different things makes no 
-   problem */
-
-@interface TestClass : Object
-{
-  int test;
-}
-+ (int) test;
-- (int) test;
-@end
-
-@implementation TestClass
-+ (int) test
-{
-  return 1;
-}
-- (int) test
-{
-  /* 0 + 2 as `test' is implicitly initialized to zero */
-  return test + 2; 
-}
-@end
-
-
-int main (void)
-{
-  if ([TestClass test] != 1)
-    {
-      abort ();
-    }
-  if ([[[TestClass alloc] init] test] != 2)
-    {
-      abort ();
-    }
-
-  return 0;
-}