diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2008-07-03 22:32:42 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2008-07-03 15:32:42 -0700 |
commit | 12ae312b05a797b6a80d26a0863bea5a9a7051a8 (patch) | |
tree | 0751328588d60564dd7c925a95367aebbe526464 | |
parent | 52778e2a62d8e9eacf3333e2cb34b65a45aaf12d (diff) | |
download | gcc-12ae312b05a797b6a80d26a0863bea5a9a7051a8.zip gcc-12ae312b05a797b6a80d26a0863bea5a9a7051a8.tar.gz gcc-12ae312b05a797b6a80d26a0863bea5a9a7051a8.tar.bz2 |
struct-by-value-17a_x.c: Remove duplicated code.
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.
From-SVN: r137439
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/struct-by-value-17a_x.c | 37 | ||||
-rw-r--r-- | gcc/testsuite/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 51e89e5..35df102 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 0a2b1b0e..5b2f1d1 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 d435d09..d785a99 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) |