From 7b6cbff4caee3e4cc7e5d180f8b34a64c4e7bff4 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 1 Nov 1999 05:19:07 +0000 Subject: [PATCH] * gcc.dg/struct-ret-2.c: New test. From-SVN: r30310 --- gcc/testsuite/ChangeLog | 2 ++ gcc/testsuite/gcc.dg/struct-ret-2.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/struct-ret-2.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0a974dc6145..8a6b2849b7b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 1999-11-01 Alexandre Oliva + * 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 diff --git a/gcc/testsuite/gcc.dg/struct-ret-2.c b/gcc/testsuite/gcc.dg/struct-ret-2.c new file mode 100644 index 00000000000..ae92896c37b --- /dev/null +++ b/gcc/testsuite/gcc.dg/struct-ret-2.c @@ -0,0 +1,15 @@ +/* Simplified by Alexandre Oliva + from bug report by Helmut Jarausch + + Copyright (C) 1999 Free Software Foundation */ + +/* { dg-do compile { xfail mips-sgi-irix6* } } */ +/* { dg-options "-O3" } */ + +struct { + unsigned i[4]; +} foo() {} + +void bar() { + foo(); +}