-// Copyright (C) 2017 Free Software Foundation, Inc.
+// Copyright (C) 2017-2024 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-std=gnu++17 -lstdc++fs" }
+// { dg-options "-lstdc++fs" }
// { dg-do run { target c++17 } }
// { dg-require-fileio "" }
// { dg-require-filesystem-ts "" }
#include <filesystem>
#include <testsuite_hooks.h>
-const std::filesystem::path filename = "filebuf_members-1.tst";
+char cstr[] = "filebuf_members-1.tst";
+const std::filesystem::path filename = cstr;
void
test01()
VERIFY( fb.is_open() );
}
+void
+test02() // compile-only
+{
+ std::filebuf fb;
+ fb.open(cstr, std::ios::in); // PR libstdc++/83025
+}
+
int
main()
{