encode-2.m, [...]: Fix tests for systems where `char' is unsigned by default.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 4 Feb 2004 13:40:25 +0000 (13:40 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 4 Feb 2004 13:40:25 +0000 (13:40 +0000)
* objc.dg/encode-2.m, objc.dg/encode-3.m, objc.dg/encode-4.m: Fix
tests for systems where `char' is unsigned by default.

From-SVN: r77247

gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/encode-2.m
gcc/testsuite/objc.dg/encode-3.m
gcc/testsuite/objc.dg/encode-4.m

index 21af289471117f268d5d657dbdc17e72cf704651..7286a0f8728fb3f643b5583492c954ab057e25e9 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * objc.dg/encode-2.m, objc.dg/encode-3.m, objc.dg/encode-4.m: Fix
+       tests for systems where `char' is unsigned by default.
+
 2003-02-04  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
 
        PR c++/13997
index b0899270f7f3a3ac784e262d6d84adc74302864f..b9003696c025ef054c113698c46e4493af50f122 100644 (file)
@@ -39,7 +39,7 @@ typedef struct { float x, y; } XXPoint;
 typedef struct { float width, height; } XXSize;
 typedef struct _XXRect { XXPoint origin; XXSize size; } XXRect;
 -(id)setRect:(XXRect)r withInt:(int)i;
--(void) char:(char)c float:(float)f double:(double)d long:(long)l;
+-(void) char:(signed char)c float:(float)f double:(double)d long:(long)l;
 @end
 
 XXRect my_rect;
@@ -57,7 +57,7 @@ unsigned offs1, offs2, offs3, offs4, offs5, offs6, offs7;
   CHECK_IF(offs == offs1); 
   return nil; 
 }
--(void) char:(char)c float:(float)f double:(double)d long:(long)l {
+-(void) char:(signed char)c float:(float)f double:(double)d long:(long)l {
   unsigned offs = sizeof(self);
   CHECK_IF(offs == offs3);
   offs += sizeof(_cmd);
index d32ab729ba154032a9fe1b8b4cff23de5e94a90f..20a85b43bdf1f654c3ef8b7807830b15d06a4028 100644 (file)
@@ -28,7 +28,7 @@ union __XXAngle { unsigned int alpha, beta; };
 typedef struct { float x, y; union __XXAngle a; } XXPoint;
 typedef struct { double width, height; } XXSize;
 typedef struct _XXRect { XXPoint origin; XXSize size; struct _XXRect *next; } XXRect;
-- (void) char:(char)c float:(float)f double:(double)d unsigned:(unsigned)u short:(short)s long:(long)l;
+- (void) char:(signed char)c float:(float)f double:(double)d unsigned:(unsigned)u short:(short)s long:(long)l;
 - (void *)setRect:(XXRect)r withBool:(ProtoBool)b withInt:(int)i;
 + (Enum *)getEnum:(XXPoint *)pt enum:(enum Enum)e bool:(ObjCBool)b;
 + (ProtoBool **)getBool:(ObjCBool **)b;
index 1f179e1dad5ef01e138b3748eb07fd09e1c29b3b..a754c6955cbcd93b3196a81737905533002d7cf2 100644 (file)
@@ -31,7 +31,7 @@ struct Nested {
 };
 
 @interface Int1: Object {
-  char a, b;
+  signed char a, b;
   Int2 *int2;
   struct Nested nested;
 }