diff options
author | Janis Johnson <janis187@us.ibm.com> | 2009-09-28 18:35:54 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2009-09-28 18:35:54 +0000 |
commit | 8387984e98cecc445b871da9a9e1968762cc266d (patch) | |
tree | ce341134218d2a020b3974251d472226a6866da4 /gcc | |
parent | 425a180d827c1754373136a7e20482e9002edfa9 (diff) | |
download | gcc-8387984e98cecc445b871da9a9e1968762cc266d.zip gcc-8387984e98cecc445b871da9a9e1968762cc266d.tar.gz gcc-8387984e98cecc445b871da9a9e1968762cc266d.tar.bz2 |
dfp.exp: Run tests from c-c++-common/dfp.
* g++.dg/dfp/dfp.exp: Run tests from c-c++-common/dfp.
* c-c++-common/dfp/func-vararg-alternate-d32.c: XFAIL for C++.
* c-c++-common/dfp/func-vararg-dfp.c: Ditto.
* c-c++-common/dfp/func-vararg-mixed.c: Ditto.
* c-c++-common/dfp/func-vararg-mixed-2.c: Ditto.
From-SVN: r152247
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/dfp/func-vararg-alternate-d32.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/dfp/func-vararg-dfp.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/dfp/func-vararg-mixed.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/dfp/dfp.exp | 5 |
6 files changed, 16 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 876e5bf..7d6539a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2009-09-28 Janis Johnson <janis187@us.ibm.com> + * g++.dg/dfp/dfp.exp: Run tests from c-c++-common/dfp. + * c-c++-common/dfp/func-vararg-alternate-d32.c: XFAIL for C++. + * c-c++-common/dfp/func-vararg-dfp.c: Ditto. + * c-c++-common/dfp/func-vararg-mixed.c: Ditto. + * c-c++-common/dfp/func-vararg-mixed-2.c: Ditto. + * g++.dg/dfp/dfp.exp: Fix typo. * lib/target-supports.exp (check-effective-target-dfp-nocache): diff --git a/gcc/testsuite/c-c++-common/dfp/func-vararg-alternate-d32.c b/gcc/testsuite/c-c++-common/dfp/func-vararg-alternate-d32.c index 651b7e8..225c131 100644 --- a/gcc/testsuite/c-c++-common/dfp/func-vararg-alternate-d32.c +++ b/gcc/testsuite/c-c++-common/dfp/func-vararg-alternate-d32.c @@ -1,3 +1,4 @@ +/* { dg-xfail-run-if "32-bit vararg broken" { c++ } { "*" } { "" } } */ /* Simple test of vararg passing for problematic types with and without double values passed between them. */ diff --git a/gcc/testsuite/c-c++-common/dfp/func-vararg-dfp.c b/gcc/testsuite/c-c++-common/dfp/func-vararg-dfp.c index 5add1f7..53285df 100644 --- a/gcc/testsuite/c-c++-common/dfp/func-vararg-dfp.c +++ b/gcc/testsuite/c-c++-common/dfp/func-vararg-dfp.c @@ -1,3 +1,5 @@ +/* { dg-xfail-run-if "32-bit vararg broken" { c++ } { "*" } { "" } } */ + /* C99 6.5.2.2 Function calls. Test passing varargs of the decimal float types. */ diff --git a/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c b/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c index 893cdae..9c6be63 100644 --- a/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c +++ b/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed-2.c @@ -1,4 +1,5 @@ /* { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ +/* { dg-xfail-run-if "32-bit vararg broken" { c++ } { "*" } { "" } } */ /* { dg-options "-mpreferred-stack-boundary=2" } */ /* C99 6.5.2.2 Function calls. diff --git a/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed.c b/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed.c index 1669eaf..032a105 100644 --- a/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed.c +++ b/gcc/testsuite/c-c++-common/dfp/func-vararg-mixed.c @@ -1,3 +1,5 @@ +/* { dg-xfail-run-if "32-bit vararg broken" { c++ } { "*" } { "" } } */ + /* C99 6.5.2.2 Function calls. Test passing varargs of the combination of decimal float types and other types. */ diff --git a/gcc/testsuite/g++.dg/dfp/dfp.exp b/gcc/testsuite/g++.dg/dfp/dfp.exp index a34dd89..1e4c513 100644 --- a/gcc/testsuite/g++.dg/dfp/dfp.exp +++ b/gcc/testsuite/g++.dg/dfp/dfp.exp @@ -48,9 +48,12 @@ set DEFAULT_CXXFLAGS "" # Initialize `dg'. dg-init -# Main loop. +# Main loop. Run the tests that are specific to C++. dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[C]] \ "" $DEFAULT_CXXFLAGS +# Run tests that are shared with C testing. +dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/dfp/*.c]] \ + "" $DEFAULT_CXXFLAGS # All done. dg-finish |