bad_function_call.pass.cpp 656 B

1234567891011121314151617181920212223242526
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // Class bad_function_call
  10. // class bad_function_call
  11. // : public exception
  12. // {
  13. // public:
  14. // // 20.7.16.1.1, constructor:
  15. // bad_function_call();
  16. // };
  17. #include <functional>
  18. #include <type_traits>
  19. int main()
  20. {
  21. static_assert((std::is_base_of<std::exception, std::bad_function_call>::value), "");
  22. }