summaryrefslogtreecommitdiffstats
path: root/test/language.support/support.exception/exception.unexpected/unexpected.handler/unexpected_handler.pass.cpp
blob: da1dd4f43a478839605ef69ae936db85c4dc36f5 (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 distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
 
// test unexpected_handler

#include <exception>

void f() {}

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