diff options
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/hash_value.cc')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/hash_value.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/hash_value.cc b/libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/hash_value.cc index 6bc6296b5a8..0dcea6efc64 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/hash_value.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/hash_value.cc @@ -42,9 +42,19 @@ test02() } } +void +test03() +{ + std::hash<path> h; + // LWG 3657. std::hash<std::filesystem::path> is not enabled + for (const path p : __gnu_test::test_paths) + VERIFY( h(p) == hash_value(p) ); +} + int main() { test01(); test02(); + test03(); } |