aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMatthew Hiller <hiller@redhat.com>2000-10-18 02:27:57 +0000
committerJeff Law <law@gcc.gnu.org>2000-10-17 20:27:57 -0600
commit15edc0cb96924c94cda82a9cfa425f92a7a5ed5e (patch)
treec3913882b8fd2b196e53a446cfa1372b09564b4c /gcc
parent19ca869b6dbfc8437cb4e2685b514ee586a4fbaa (diff)
downloadgcc-15edc0cb96924c94cda82a9cfa425f92a7a5ed5e.zip
gcc-15edc0cb96924c94cda82a9cfa425f92a7a5ed5e.tar.gz
gcc-15edc0cb96924c94cda82a9cfa425f92a7a5ed5e.tar.bz2
* gcc.c-torture/execute/20001017-2.c: New test.
From-SVN: r36924
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20001017-2.c17
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7ae28fb..b641c85 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-10-17 Matthew Hiller <hiller@redhat.com>
+
+ * gcc.c-torture/execute/20001017-2.c: New test.
+
2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.c-torture/compile/20001018-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20001017-2.c b/gcc/testsuite/gcc.c-torture/execute/20001017-2.c
new file mode 100644
index 0000000..3263bb9
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20001017-2.c
@@ -0,0 +1,17 @@
+void
+fn_4parms (unsigned char a, long *b, long *c, unsigned int *d)
+{
+ if (*b != 1 || *c != 2 || *d != 3)
+ abort ();
+}
+
+int
+main ()
+{
+ unsigned char a = 0;
+ unsigned long b = 1, c = 2;
+ unsigned int d = 3;
+
+ fn_4parms (a, &b, &c, &d);
+ return 0;
+}