1515ba559b91cc334e654644f86967de85d737846Eric Fiselier//===----------------------------------------------------------------------===// 2515ba559b91cc334e654644f86967de85d737846Eric Fiselier// 3515ba559b91cc334e654644f86967de85d737846Eric Fiselier// The LLVM Compiler Infrastructure 4515ba559b91cc334e654644f86967de85d737846Eric Fiselier// 5515ba559b91cc334e654644f86967de85d737846Eric Fiselier// This file is dual licensed under the MIT and the University of Illinois Open 6515ba559b91cc334e654644f86967de85d737846Eric Fiselier// Source Licenses. See LICENSE.TXT for details. 7515ba559b91cc334e654644f86967de85d737846Eric Fiselier// 8515ba559b91cc334e654644f86967de85d737846Eric Fiselier//===----------------------------------------------------------------------===// 9515ba559b91cc334e654644f86967de85d737846Eric Fiselier 10515ba559b91cc334e654644f86967de85d737846Eric Fiselier// UNSUPPORTED: c++98, c++03, c++11, c++14 11515ba559b91cc334e654644f86967de85d737846Eric Fiselier 12515ba559b91cc334e654644f86967de85d737846Eric Fiselier// test unexpected 13515ba559b91cc334e654644f86967de85d737846Eric Fiselier 14515ba559b91cc334e654644f86967de85d737846Eric Fiselier#include <exception> 15515ba559b91cc334e654644f86967de85d737846Eric Fiselier 16515ba559b91cc334e654644f86967de85d737846Eric Fiseliervoid f() {} 17515ba559b91cc334e654644f86967de85d737846Eric Fiselier 18515ba559b91cc334e654644f86967de85d737846Eric Fiselierint main() { 19515ba559b91cc334e654644f86967de85d737846Eric Fiselier using T = std::unexpected_handler; // expected-error {{no type named 'unexpected_handler' in namespace 'std'}} 20515ba559b91cc334e654644f86967de85d737846Eric Fiselier std::unexpected(); // expected-error {{no member named 'unexpected' in namespace 'std'}} 21515ba559b91cc334e654644f86967de85d737846Eric Fiselier std::get_unexpected(); // expected-error {{no member named 'get_unexpected' in namespace 'std'}} 22515ba559b91cc334e654644f86967de85d737846Eric Fiselier std::set_unexpected(f); // expected-error {{no type named 'set_unexpected' in namespace 'std'}} 23515ba559b91cc334e654644f86967de85d737846Eric Fiselier} 24