Commit c85a3379 by Kaveh R. Ghazi Committed by Kaveh Ghazi

encode-2.m, [...]: Fix tests for systems where `char' is unsigned by default.

	* 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
parent dd292d0a
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
......
......@@ -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);
......
......@@ -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;
......
......@@ -31,7 +31,7 @@ struct Nested {
};
@interface Int1: Object {
char a, b;
signed char a, b;
Int2 *int2;
struct Nested nested;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment