Add a test for LWG#2462: std::ios_base::failure is overspecified
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@251250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
332ab91947
commit
175cb20bfb
@ -19,6 +19,9 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
// LWG2462 std::ios_base::failure is overspecified
|
||||
static_assert((std::is_base_of<std::system_error, std::ios_base::failure>::value), "");
|
||||
|
||||
{
|
||||
std::string what_arg("io test message");
|
||||
std::ios_base::failure se(what_arg, make_error_code(std::errc::is_a_directory));
|
||||
|
Loading…
x
Reference in New Issue
Block a user