15a83710eSEric Fiselier //===----------------------------------------------------------------------===// 25a83710eSEric Fiselier // 357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 65a83710eSEric Fiselier // 75a83710eSEric Fiselier //===----------------------------------------------------------------------===// 85a83710eSEric Fiselier 95a83710eSEric Fiselier // Class bad_function_call 105a83710eSEric Fiselier 115a83710eSEric Fiselier // class bad_function_call 125a83710eSEric Fiselier // : public exception 135a83710eSEric Fiselier // { 145a83710eSEric Fiselier // public: 155a83710eSEric Fiselier // // 20.7.16.1.1, constructor: 165a83710eSEric Fiselier // bad_function_call(); 175a83710eSEric Fiselier // }; 185a83710eSEric Fiselier 195a83710eSEric Fiselier #include <functional> 205a83710eSEric Fiselier #include <type_traits> 215a83710eSEric Fiselier 22*7fc6a556SMarshall Clow #include "test_macros.h" 23*7fc6a556SMarshall Clow main(int,char **)242df59c50SJF Bastienint main(int, char**) 255a83710eSEric Fiselier { 265a83710eSEric Fiselier static_assert((std::is_base_of<std::exception, std::bad_function_call>::value), ""); 272df59c50SJF Bastien 282df59c50SJF Bastien return 0; 295a83710eSEric Fiselier } 30