* gcc.dg/struct-ret-2.c: New test.
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Mon, 1 Nov 1999 05:19:07 +0000 (05:19 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Mon, 1 Nov 1999 05:19:07 +0000 (05:19 +0000)
From-SVN: r30310

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/struct-ret-2.c [new file with mode: 0644]

index 0a974dc61451f60ad8ef8c4c0783ab6d5ce7d454..8a6b2849b7b5564854504498688d57cd6415bf66 100644 (file)
@@ -1,5 +1,7 @@
 1999-11-01  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
+       * gcc.dg/struct-ret-2.c: New test.
+
        * gcc.dg/array-1.c: New test.
 
 Sat Oct 30 22:23:46 1999  Stephen L Moshier <moshier@mediaone.net>
diff --git a/gcc/testsuite/gcc.dg/struct-ret-2.c b/gcc/testsuite/gcc.dg/struct-ret-2.c
new file mode 100644 (file)
index 0000000..ae92896
--- /dev/null
@@ -0,0 +1,15 @@
+/* Simplified by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+   from bug report by Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
+
+   Copyright (C) 1999 Free Software Foundation  */
+
+/* { dg-do compile { xfail mips-sgi-irix6* } } */
+/* { dg-options "-O3" } */
+
+struct {
+  unsigned i[4];
+} foo() {}
+void bar() {
+  foo();           
+}