New test.
authorAlan Modra <amodra@bigpond.net.au>
Sun, 23 Feb 2003 22:48:05 +0000 (22:48 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Sun, 23 Feb 2003 22:48:05 +0000 (09:18 +1030)
From-SVN: r63339

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/param1.C [new file with mode: 0644]

index 73d1f2d23c3e5616028e5b96405c17137e07525b..73c1e5e248864ffa2b86e9fa0dd5a49269eddf9f 100644 (file)
@@ -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 (file)
index 0000000..c438a19
--- /dev/null
@@ -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;
+}