minix/external/bsd/libc++/dist/libcxx/test/thread/futures/futures.future_error/types.pass.cpp

22 lines
609 B
C++
Raw Normal View History

//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <future>
// class future_error : public logic_error {...};
#include <future>
#include <type_traits>
int main()
{
static_assert((std::is_convertible<std::future_error*,
std::logic_error*>::value), "");
}