llvm-project/libcxx/test/diagnostics/syserr/syserr.errcat
David Majnemer 31234844ef Linux: Correctly identify valid error codes
[syserr.errcat.objects]p4 specifies that
system_category().default_error_condition(ev) map to
error_condition(posv, generic_category()) if ev could map to a POSIX
errno.

Linux reserves up to and including 4095 for errno values, use this as a
bound.

This fixes syserr.errcat.objects/system_category.pass.cpp on Linux.

llvm-svn: 209795
2014-05-29 05:02:22 +00:00
..
syserr.errcat.derived
syserr.errcat.nonvirtuals David Blaikie suggested this test for detecting constexpr on the error_category default constructor. Additionally I decided to make this constructor trivial as well, as I could not come up with a rationale for not doing so. Fully tested with both current Apple clang and tip-of-trunk clang. 2013-08-22 17:41:48 +00:00
syserr.errcat.objects Linux: Correctly identify valid error codes 2014-05-29 05:02:22 +00:00
syserr.errcat.overview
syserr.errcat.virtuals
nothing_to_do.pass.cpp