diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-04 13:40:25 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-04 13:40:25 +0000 |
commit | aeeb0efbf9596169ec1e336e5b7f3b3c93899637 (patch) | |
tree | 62e5c55892d9f07dbfef0ee3d387ef58885ae81e /gcc/testsuite/objc.dg/encode-2.m | |
parent | eaa112a05f719b80174753802d1d0bf665972653 (diff) | |
download | gcc-aeeb0efbf9596169ec1e336e5b7f3b3c93899637.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/objc.dg/encode-2.m')
-rw-r--r-- | gcc/testsuite/objc.dg/encode-2.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/objc.dg/encode-2.m b/gcc/testsuite/objc.dg/encode-2.m index b0899270f7f..b9003696c02 100644 --- a/gcc/testsuite/objc.dg/encode-2.m +++ b/gcc/testsuite/objc.dg/encode-2.m @@ -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); |