summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-22 10:38:22 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-22 10:38:22 +0000
commit0f5c0729c8920632c8c965f2b40e6e3f6bcfd81e (patch)
tree426e9408a064e6cb2e95bb75ca0dcc1cc7583e8f
parentfeb8ef57dbef254d81a683ad764ef7253e296164 (diff)
downloadgcc-0f5c0729c8920632c8c965f2b40e6e3f6bcfd81e.tar.gz
* gcc.c-torture/execute/divmod-1.c: Convert to ANSI.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45104 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/divmod-1.c36
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;
}