gcc/libstdc++-v3/testsuite/experimental/filesystem/operations
Jonathan Wakely 2e023647c8 PR libstdc++/85632 fix wraparound in filesystem::space
On 32-bit targets any values over 4GB would wrap and produce the wrong
result.

	PR libstdc++/85632 use uintmax_t for arithmetic
	* src/filesystem/ops.cc (experimental::filesystem::space): Perform
	arithmetic in result type.
	* src/filesystem/std-ops.cc (filesystem::space): Likewise.
	* testsuite/27_io/filesystem/operations/space.cc: Check total capacity
	is greater than free space.
	* testsuite/experimental/filesystem/operations/space.cc: New.

From-SVN: r259901
2018-05-03 19:58:00 +01:00
..
absolute.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
canonical.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
copy.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
copy_file.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
create_directories.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
create_directory.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
create_symlink.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
current_path.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
equivalent.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
exists.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
file_size.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
is_empty.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
last_write_time.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
permissions.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
read_symlink.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
remove.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
remove_all.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
space.cc PR libstdc++/85632 fix wraparound in filesystem::space 2018-05-03 19:58:00 +01:00
status.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
temp_directory_path.cc Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00