From: redi Date: Mon, 10 Dec 2018 15:25:02 +0000 (+0000) Subject: Make test for Filesystem TS actually use the Filesystem TS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad9530d2ec851bb8955c26b40469cadb0e137e83;p=thirdparty%2Fgcc.git Make test for Filesystem TS actually use the Filesystem TS This test was copied from 27_io/filesystem/path/query/is_absolute.cc but should have been modified to test the path type from the TS instead of std::filesystem::path. * testsuite/experimental/filesystem/path/query/is_absolute.cc: Fix test to use TS, not C++17. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266957 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c29ae157db94..8fb0aba7a459 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2018-12-10 Jonathan Wakely + + * testsuite/experimental/filesystem/path/query/is_absolute.cc: Fix + test to use TS, not C++17. + 2018-12-06 Iain Sandoe * scripts/make_exports.pl (check names): Don’t try to export diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc index 974dec4381d5..0eb3e7dfc662 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc @@ -1,5 +1,5 @@ -// { dg-options "-std=gnu++17 -lstdc++fs" } -// { dg-do run { target c++17 } } +// { dg-options "-DUSE_FILESYSTEM_TS -lstdc++fs" } +// { dg-do run { target c++11 } } // { dg-require-filesystem-ts "" } // Copyright (C) 2018 Free Software Foundation, Inc. @@ -21,15 +21,15 @@ // 8.4.9 path decomposition [path.decompose] -#include +#include #include -using std::filesystem::path; +using std::experimental::filesystem::path; void test01() { - #ifdef _GLIBCXX_FILESYSTEM_IS_WINDOWS +#ifdef _GLIBCXX_FILESYSTEM_IS_WINDOWS const bool is_posix = false; #else const bool is_posix = true;