diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/divmod-1.c | 36 |
2 files changed, 14 insertions, 26 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 20d5ec9b482..16501194519 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-08-21 Aldy Hernandez <aldyh@redhat.com> + + * gcc.c-torture/execute/divmod-1.c: Convert to ANSI. + 2001-08-20 Janis Johnson <janis187@us.ibm.com> * gcc.misc-tests/gcov.exp: Add support for branch information. diff --git a/gcc/testsuite/gcc.c-torture/execute/divmod-1.c b/gcc/testsuite/gcc.c-torture/execute/divmod-1.c index 569c16efc0e..2bcd109708d 100644 --- a/gcc/testsuite/gcc.c-torture/execute/divmod-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/divmod-1.c @@ -1,67 +1,51 @@ -div1 (x) - signed char x; +div1 (signed char x) { return x / -1; } -div2 (x) - signed short x; +div2 (signed short x) { return x / -1; } -div3 (x, y) - signed char x; - signed char y; +div3 (signed char x, signed char y) { return x / y; } -div4 (x, y) - signed short x; - signed short y; +div4 (signed short x, signed short y) { return x / y; } -mod1 (x) - signed char x; +mod1 (signed char x) { return x % -1; } -mod2 (x) - signed short x; +mod2 (signed short x) { return x % -1; } -mod3 (x, y) - signed char x; - signed char y; +mod3 (signed char x, signed char y) { return x % y; } -mod4 (x, y) - signed short x; - signed short y; +mod4 (signed short x, signed short y) { return x % y; } signed long -mod5 (x, y) - signed long x; - signed long y; +mod5 (signed long x, signed long y) { return x % y; } unsigned long -mod6 (x, y) - unsigned long x; - unsigned long y; +mod6 (unsigned long x, unsigned long y) { return x % y; } |