diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-03-30 04:08:16 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-03-30 04:08:16 +0000 |
commit | 71900fe836550b5de69842ebaa243b8bd762e594 (patch) | |
tree | 725c889db2c3e3e90a30a5e7cddf95e2553af010 /gdb/testsuite/gdb.base/sizeof.c | |
parent | 4d628cd73e16497d326b6e59302e947c32c45e82 (diff) | |
download | binutils-71900fe836550b5de69842ebaa243b8bd762e594.zip binutils-71900fe836550b5de69842ebaa243b8bd762e594.tar.gz binutils-71900fe836550b5de69842ebaa243b8bd762e594.tar.bz2 |
2003-03-29 Andrew Cagney <cagney@redhat.com>
* gdb.base/sizeof.c (main): Print the value of '\377'.
* gdb.base/sizeof.exp: Check the sign of '\377'.
Diffstat (limited to 'gdb/testsuite/gdb.base/sizeof.c')
-rw-r--r-- | gdb/testsuite/gdb.base/sizeof.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/sizeof.c b/gdb/testsuite/gdb.base/sizeof.c index 95d379e..c32231f 100644 --- a/gdb/testsuite/gdb.base/sizeof.c +++ b/gdb/testsuite/gdb.base/sizeof.c @@ -114,6 +114,7 @@ main () printf ("sizeof (long double) == %d\n", sizeof (long double)); /* Signed char? */ + printf ("valueof ('\\377') == %d\n", '\377'); printf ("valueof ((int) (char) -1) == %d\n", (int) (char) -1); printf ("valueof ((int) (signed char) -1) == %d\n", (int) (signed char) -1); printf ("valueof ((int) (unsigned char) -1) == %d\n", (int) (unsigned char) -1); |