1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // Class bad_function_call 10 11 // class bad_function_call 12 // : public exception 13 // { 14 // public: 15 // // 20.7.16.1.1, constructor: 16 // bad_function_call(); 17 // }; 18 19 #include <functional> 20 #include <type_traits> 21 22 int main(int, char**) 23 { 24 static_assert((std::is_base_of<std::exception, std::bad_function_call>::value), ""); 25 26 return 0; 27 } 28