summaryrefslogtreecommitdiffstats
path: root/test/language.support/support.dynamic/alloc.errors/new.handler/new_handler.pass.cpp
blob: 66bb720e0132200d0d99b167c51bf780129d8a37 (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 new_handler

#include <new>

void f() {}

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