Howard Hinnant e3e488eb61 sync with N3126
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@113098 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-05 00:57:20 +00:00

27 lines
541 B
C++

//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// test unexpected
#include <exception>
#include <cstdlib>
#include <cassert>
void f1()
{
std::exit(0);
}
int main()
{
std::set_unexpected(f1);
std::unexpected();
assert(false);
}