gcc/libstdc++-v3/testsuite/27_io
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
..
basic_filebuf Update copyright years. 2018-01-03 11:03:58 +01:00
basic_fstream Update copyright years. 2018-01-03 11:03:58 +01:00
basic_ifstream Update copyright years. 2018-01-03 11:03:58 +01:00
basic_ios PR libstdc++/85222 allow catching iostream errors as gcc4-compatible ios::failure 2018-04-10 15:36:09 +01:00
basic_iostream Update copyright years. 2018-01-03 11:03:58 +01:00
basic_istream PR libstdc++/85222 allow catching iostream errors as gcc4-compatible ios::failure 2018-04-10 15:36:09 +01:00
basic_istringstream Update copyright years. 2018-01-03 11:03:58 +01:00
basic_ofstream Update copyright years. 2018-01-03 11:03:58 +01:00
basic_ostream PR libstdc++/85222 allow catching iostream errors as gcc4-compatible ios::failure 2018-04-10 15:36:09 +01:00
basic_ostringstream Update copyright years. 2018-01-03 11:03:58 +01:00
basic_streambuf Update copyright years. 2018-01-03 11:03:58 +01:00
basic_stringbuf Update copyright years. 2018-01-03 11:03:58 +01:00
basic_stringstream Update copyright years. 2018-01-03 11:03:58 +01:00
filesystem PR libstdc++/85632 fix wraparound in filesystem::space 2018-05-03 19:58:00 +01:00
fpos Update copyright years. 2018-01-03 11:03:58 +01:00
headers Update copyright years. 2018-01-03 11:03:58 +01:00
ios_base PR libstdc++/68197 fail on negative iword/pword indices 2018-05-02 20:04:55 +01:00
manipulators Update copyright years. 2018-01-03 11:03:58 +01:00
objects Update copyright years. 2018-01-03 11:03:58 +01:00
types Update copyright years. 2018-01-03 11:03:58 +01:00
rvalue_streams-2.cc Update copyright years. 2018-01-03 11:03:58 +01:00
rvalue_streams.cc Update copyright years. 2018-01-03 11:03:58 +01:00