summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/depr/exception.unexpected/unexpected.handler/unexpected_handler.pass.cpp
blob: 7fab50081d2a3ccf3c8399e387b0ba1a1ec9f0e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// test unexpected_handler

#include <exception>

void f() {}

int main()
{
    std::unexpected_handler p = f;
}
OpenPOWER on IntegriCloud