These tests only need to be preprocessed not compiled.
* testsuite/experimental/feat-cxx14.cc: Only preprocess, not compile. * testsuite/experimental/feat-lib-fund.cc: Likewise. Tested powerpc64le-linux, committed to trunk.
commit 8ac566ed5dd7b70bc253008d89d569f2dd4dcc33 Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Aug 23 08:45:19 2016 +0100 Use dg-do preprocess instead of compile for tests * testsuite/experimental/feat-cxx14.cc: Only preprocess, not compile. * testsuite/experimental/feat-lib-fund.cc: Likewise. diff --git a/libstdc++-v3/testsuite/experimental/feat-cxx14.cc b/libstdc++-v3/testsuite/experimental/feat-cxx14.cc index c61f7b0..8c0061e 100644 --- a/libstdc++-v3/testsuite/experimental/feat-cxx14.cc +++ b/libstdc++-v3/testsuite/experimental/feat-cxx14.cc @@ -1,5 +1,4 @@ -// { dg-options "-std=gnu++14" } -// { dg-do compile } +// { dg-do preprocess { target c++14 } } #include <utility> #include <tuple> diff --git a/libstdc++-v3/testsuite/experimental/feat-lib-fund.cc b/libstdc++-v3/testsuite/experimental/feat-lib-fund.cc index fbc3744..b0e6e28 100644 --- a/libstdc++-v3/testsuite/experimental/feat-lib-fund.cc +++ b/libstdc++-v3/testsuite/experimental/feat-lib-fund.cc @@ -1,5 +1,4 @@ -// { dg-options "-std=gnu++14" } -// { dg-do compile } +// { dg-do preprocess { target c++14 } } #if !__has_include(<experimental/tuple>) # error "<experimental/tuple>"