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 // test unexpected_handler
11 
12 #include <exception>
13 
f()14 void f() {}
15 
main()16 int main()
17 {
18     std::unexpected_handler p = f;
19 }
20