From 12ae312b05a797b6a80d26a0863bea5a9a7051a8 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 3 Jul 2008 22:32:42 +0000 Subject: [PATCH] struct-by-value-17a_x.c: Remove duplicated code. 2008-07-03 H.J. Lu * gcc.dg/compat/struct-by-value-17a_x.c: Remove duplicated code. * gcc.dg/compat/struct-by-value-17a_y.c: Likewise. From-SVN: r137439 --- gcc/testsuite/ChangeLog | 5 +++ .../gcc.dg/compat/struct-by-value-17a_x.c | 37 ------------------- .../gcc.dg/compat/struct-by-value-17a_y.c | 22 ----------- 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 + + * 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 * 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 @@ -23,43 +23,6 @@ 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 -} -#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) 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 @@ -16,28 +16,6 @@ DEFS(cd,_Complex double) INITS(cd, _Complex double) -TEST(Scd13, _Complex double) -TEST(Scd14, _Complex double) -TEST(Scd15, _Complex double) -TEST(Scd16, _Complex double) -#include - -#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) -- 2.30.2