From c0e4f189619cdc8a725cf07105cb3f9018a3f794 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Wed, 22 Aug 2001 10:38:22 +0000 Subject: [PATCH] * gcc.c-torture/execute/divmod-1.c: Convert to ANSI. From-SVN: r45104 --- gcc/testsuite/ChangeLog | 4 +++ .../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 20d5ec9b4820..165011945191 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-08-21 Aldy Hernandez + + * gcc.c-torture/execute/divmod-1.c: Convert to ANSI. + 2001-08-20 Janis Johnson * 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 569c16efc0e9..2bcd109708d9 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; }