gcc/libstdc++-v3/testsuite/experimental/filesystem
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
..
file_status Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
iterators Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00
operations PR libstdc++/85632 fix wraparound in filesystem::space 2018-05-03 19:58:00 +01:00
path Make Filesystem TS tests pass in C++17 mode 2018-04-16 09:24:40 +01:00