1//===----------------------------------------------------------------------===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// UNSUPPORTED: c++98, c++03, c++11, c++14
11
12// test unexpected
13
14#include <exception>
15
16void f() {}
17
18int main() {
19  using T = std::unexpected_handler; // expected-error {{no type named 'unexpected_handler' in namespace 'std'}}
20  std::unexpected(); // expected-error {{no member named 'unexpected' in namespace 'std'}}
21  std::get_unexpected(); // expected-error {{no member named 'get_unexpected' in namespace 'std'}}
22  std::set_unexpected(f); // expected-error {{no type named 'set_unexpected' in namespace 'std'}}
23}
24