summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-03 22:32:42 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-03 22:32:42 +0000
commit6931af7ac38fdcda76a075dc86be11fb612dfd7e (patch)
tree0751328588d60564dd7c925a95367aebbe526464
parent14f25899b4ec14f79a497a1421e1e3fc8c76e243 (diff)
downloadgcc-6931af7ac38fdcda76a075dc86be11fb612dfd7e.tar.gz
2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/compat/struct-by-value-17a_x.c: Remove duplicated code. * gcc.dg/compat/struct-by-value-17a_y.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137439 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-by-value-17a_x.c37
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-by-value-17a_y.c22
3 files changed, 5 insertions, 59 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 51e89e57756..35df102f0ca 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gcc.dg/compat/struct-by-value-17a_x.c: Remove duplicated code.
+ * gcc.dg/compat/struct-by-value-17a_y.c: Likewise.
+
2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/loop_optimization3.adb: New test.
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_x.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_x.c
index 0a2b1b0ee14..5b2f1d1d920 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_x.c
+++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_x.c
@@ -35,40 +35,3 @@ if (fails != 0)
#undef T
}
-#include "compat-common.h"
-
-#include "fp-struct-defs.h"
-#include "fp-struct-check.h"
-#include "fp-struct-test-by-value-x.h"
-
-DEFS(cd, _Complex double)
-CHECKS(cd, _Complex double)
-
-
-TEST(Scd13, _Complex double)
-TEST(Scd14, _Complex double)
-TEST(Scd15, _Complex double)
-TEST(Scd16, _Complex double)
-
-#undef T
-
-void
-struct_by_value_17a_x ()
-{
-DEBUG_INIT
-
-#define T(TYPE, MTYPE) testit##TYPE ();
-
-
-T(Scd13, _Complex double)
-T(Scd14, _Complex double)
-T(Scd15, _Complex double)
-T(Scd16, _Complex double)
-
-DEBUG_FINI
-
-if (fails != 0)
- abort ();
-
-#undef T
-}
diff --git a/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_y.c b/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_y.c
index d435d09ab84..d785a999d58 100644
--- a/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_y.c
+++ b/gcc/testsuite/gcc.dg/compat/struct-by-value-17a_y.c
@@ -20,25 +20,3 @@ TEST(Scd13, _Complex double)
TEST(Scd14, _Complex double)
TEST(Scd15, _Complex double)
TEST(Scd16, _Complex double)
-#include <stdarg.h>
-
-#include "compat-common.h"
-
-#ifdef SKIP_VA
-const int test_va = 0;
-#else
-const int test_va = 1;
-#endif
-
-#include "fp-struct-defs.h"
-#include "fp-struct-init.h"
-#include "fp-struct-test-by-value-y.h"
-
-DEFS(cd,_Complex double)
-INITS(cd, _Complex double)
-
-
-TEST(Scd13, _Complex double)
-TEST(Scd14, _Complex double)
-TEST(Scd15, _Complex double)
-TEST(Scd16, _Complex double)