aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-02-23 22:48:05 +0000
committerAlan Modra <amodra@gcc.gnu.org>2003-02-24 09:18:05 +1030
commitf641e05b44de085b6d257e2dc4aea3523931b61d (patch)
treea68100d5cde365935552f537ebd885fd17a18b58
parent8403445abac6b5d1b03903c3f23fd9a28c550438 (diff)
downloadgcc-f641e05b44de085b6d257e2dc4aea3523931b61d.zip
gcc-f641e05b44de085b6d257e2dc4aea3523931b61d.tar.gz
gcc-f641e05b44de085b6d257e2dc4aea3523931b61d.tar.bz2
New test.
From-SVN: r63339
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/abi/param1.C28
2 files changed, 32 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 73d1f2d..73c1e5e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-24 Alan Modra <amodra@bigpond.net.au>
+
+ * g++.dg/abi/param1.C: New test.
+
2003-02-23 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/7982
diff --git a/gcc/testsuite/g++.dg/abi/param1.C b/gcc/testsuite/g++.dg/abi/param1.C
new file mode 100644
index 0000000..c438a19
--- /dev/null
+++ b/gcc/testsuite/g++.dg/abi/param1.C
@@ -0,0 +1,28 @@
+// { dg-do run }
+//
+
+// Failed on powerpc64-linux for structure sizes > 64 and with size not a
+// multiple of 8 after padding.
+struct object
+{
+ int i1;
+ char s1[60];
+ int i2;
+ char s2[64];
+};
+
+extern int subr (struct object obj);
+
+int main ()
+{
+ struct object obj;
+
+ obj.i1 = 1234;
+ obj.i2 = 5678;
+ return subr (obj);
+}
+
+int subr (struct object obj)
+{
+ return obj.i1 != 1234 || obj.i2 != 5678;
+}