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 | // UNSUPPORTED: c++03 |
10 | |
11 | // Class bad_function_call |
12 | |
13 | // class bad_function_call |
14 | // : public exception |
15 | // { |
16 | // public: |
17 | // // 20.7.16.1.1, constructor: |
18 | // bad_function_call(); |
19 | // }; |
20 | |
21 | #include <exception> |
22 | #include <functional> |
23 | #include <type_traits> |
24 | |
25 | #include "test_macros.h" |
26 | |
27 | int main(int, char**) |
28 | { |
29 | static_assert((std::is_base_of<std::exception, std::bad_function_call>::value), "" ); |
30 | |
31 | return 0; |
32 | } |
33 | |