]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/objc/execute/enumeration-1.m
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / objc / execute / enumeration-1.m
diff --git a/gcc/testsuite/objc/execute/enumeration-1.m b/gcc/testsuite/objc/execute/enumeration-1.m
deleted file mode 100644 (file)
index e0b784f..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Contributed by Nicola Pero -  Wed Dec  5 17:12:40 GMT 2001 */
-#include <objc/objc.h>
-#include <objc/Object.h>
-
-/* Test using a bitfield enumeration ivar.  */
-
-typedef enum
-{
-  black,
-  white
-} color;
-
-@interface TestClass: Object
-{
-  color c:2;
-}
-- (color)color;
-- (void)setColor: (color)a;
-@end
-
-@implementation TestClass
-- (color)color
-{
-  return c;
-}
-- (void)setColor: (color)a
-{
-  c = a;
-}
-@end
-
-
-int main (void)
-{
-  TestClass *c;
-  
-  c = [TestClass new];
-  
-  [c setColor: black];
-  [c setColor: white];
-  [c setColor: black];
-  if ([c color] != black)
-    {
-      abort ();
-    }
-  
-
-  return 0;
-}