gcc/libstdc++-v3/testsuite/19_diagnostics
Jonathan Wakely da206878f6 libstdc++: std::system_category should know meaning of zero [PR102425]
Although 0 is not an errno value, it should still be recognized as
corresponding to a value belonging to the generic_category().

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

	PR libstdc++/102425
	* src/c++11/system_error.cc
	(system_error_category::default_error_condition): Add 0 to
	switch.
	* testsuite/19_diagnostics/error_category/102425.cc: New test.

(cherry picked from commit ce01e2e64c)
2021-10-12 11:45:44 +01:00
..
error_category libstdc++: std::system_category should know meaning of zero [PR102425] 2021-10-12 11:45:44 +01:00
error_code
error_condition
headers
logic_error
runtime_error
system_error
stdexcept.cc